summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2019-07-10 17:09:13 +0200
committerPaul Vinciguerra <pvinci@vinciconsulting.com>2019-07-12 10:39:04 +0000
commit3f88a74d14722d4027fe80daa2d0c79559e0f1b8 (patch)
tree41f890caad38e8b713ab24c288c62c5084b726eb
parent79a32a4a101cf379fd17da2c053d9c94ba1c5ec9 (diff)
nat: fix net44 lb static API
tag should be added at the end of the reply message instead of overwriting the original data. Type: fix Fixed: dd1e3e780c Change-Id: I4b31cf3a4a41b49ea9039a9398114dbf49a53e57 Signed-off-by: Benoît Ganne <bganne@cisco.com>
-rw-r--r--src/plugins/nat/nat_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/nat/nat_api.c b/src/plugins/nat/nat_api.c
index 9cb27448fdf..63e1e756515 100644
--- a/src/plugins/nat/nat_api.c
+++ b/src/plugins/nat/nat_api.c
@@ -2036,7 +2036,7 @@ send_nat44_lb_static_mapping_details (snat_static_mapping_t * m,
rmp = vl_msg_api_alloc (len);
clib_memset (rmp, 0, len);
- sp = (void *) &m->locals +
+ sp = (void *) &rmp->locals +
sizeof (vl_api_nat44_lb_addr_port_t) * pool_elts (m->locals);
vl_api_to_api_string (vec_len (m->tag), (char *) m->tag, sp);
}