summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2023-08-24 14:40:41 +0200
committerBenoît Ganne <bganne@cisco.com>2023-08-25 15:32:03 +0200
commit19c22a42c283a21aadebc77fe04dbb73ed8179ed (patch)
tree89be6b32c7f7eec540641be9deaa0f7555f35f99
parent6ee3aa41c395d036c8c79a3681cc5ee6bc6fceb9 (diff)
cnat: fix cnat_endpoint_encode
Type: fix Change-Id: I4ab713811626c097c7927228f3819b7785bbb951 Signed-off-by: Benoît Ganne <bganne@cisco.com>
-rw-r--r--src/plugins/cnat/cnat_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cnat/cnat_api.c b/src/plugins/cnat/cnat_api.c
index ea4b3aeaaef..a2e06a493a7 100644
--- a/src/plugins/cnat/cnat_api.c
+++ b/src/plugins/cnat/cnat_api.c
@@ -81,7 +81,7 @@ cnat_endpoint_encode (const cnat_endpoint_t * in,
if (in->ce_flags & CNAT_EP_FLAG_RESOLVED)
ip_address_encode2 (&in->ce_ip, &out->addr);
else
- clib_memset ((void *) &in->ce_ip, 0, sizeof (in->ce_ip));
+ clib_memset (&out->addr, 0, sizeof (out->addr));
}
static void