VPP-1386: fix wrong ip address of hash key for creating user in unknown protocol 50/14150/2
authorshubing guo <guo.shubing@zte.com.cn>
Sat, 11 Aug 2018 06:34:31 +0000 (14:34 +0800)
committerDamjan Marion <dmarion@me.com>
Thu, 16 Aug 2018 13:40:46 +0000 (13:40 +0000)
Change-Id: I6239e930a8805207f8e42d15e8b17d444047e3f3
Signed-off-by: shubing guo <guo.shubing@zte.com.cn>
src/plugins/nat/out2in.c

index d308308..d5fad80 100755 (executable)
@@ -1972,7 +1972,7 @@ nat44_ed_out2in_unknown_proto (snat_main_t *sm,
 
       new_addr = ip->dst_address.as_u32 = m->local_addr.as_u32;
 
-      u = nat_user_get_or_create (sm, &ip->src_address, m->fib_index,
+      u = nat_user_get_or_create (sm, &m->local_addr, m->fib_index,
                                   thread_index);
       if (!u)
         {