From 19c22a42c283a21aadebc77fe04dbb73ed8179ed Mon Sep 17 00:00:00 2001 From: Benoît Ganne Date: Thu, 24 Aug 2023 14:40:41 +0200 Subject: cnat: fix cnat_endpoint_encode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Type: fix Change-Id: I4ab713811626c097c7927228f3819b7785bbb951 Signed-off-by: Benoît Ganne --- src/plugins/cnat/cnat_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/cnat') 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 -- cgit 1.2.3-korg