summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Yourtchenko <ayourtch@gmail.com>2020-11-11 11:02:54 +0000
committerMatthew Smith <mgsmith@netgate.com>2020-11-13 15:48:14 +0000
commit66d10589f412d11841c4c8adc0a498b5527e88cb (patch)
treeaecc6bf7e6eb648ad57bae51c2d959db82b2bf70
parent25fd8ad03e6ef321604437fe8fc56ab2b3858cd7 (diff)
cnat: zero-initialize structs
fixes coverity errors 215294, 215295 Type: fix Fixes: af897c5e3fa76180fbe0634052bde98b4b3c34d7 Change-Id: Ie5da2bcddb465020d827d9f7c519a528cf2bd035 Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
-rw-r--r--src/plugins/cnat/cnat_translation.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cnat/cnat_translation.c b/src/plugins/cnat/cnat_translation.c
index 263ec05e973..d519cd59171 100644
--- a/src/plugins/cnat/cnat_translation.c
+++ b/src/plugins/cnat/cnat_translation.c
@@ -696,11 +696,11 @@ cnat_translation_init (vlib_main_t * vm)
cm->translation_hash_buckets,
cm->translation_hash_memory);
- ip4_add_del_interface_address_callback_t cb4;
+ ip4_add_del_interface_address_callback_t cb4 = { 0 };
cb4.function = cnat_ip4_if_addr_add_del_callback;
vec_add1 (i4m->add_del_interface_address_callbacks, cb4);
- ip6_add_del_interface_address_callback_t cb6;
+ ip6_add_del_interface_address_callback_t cb6 = { 0 };
cb6.function = cnat_ip6_if_addr_add_del_callback;
vec_add1 (i6m->add_del_interface_address_callbacks, cb6);