cnat: zero-initialize structs
fixes coverity errors 215294, 215295 Type: fix Fixes: af897c5e3fa76180fbe0634052bde98b4b3c34d7 Change-Id: Ie5da2bcddb465020d827d9f7c519a528cf2bd035 Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
This commit is contained in:
Andrew Yourtchenko
committed by
Matthew Smith
parent
25fd8ad03e
commit
66d10589f4
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user