diff options
author | Neale Ranns <nranns@cisco.com> | 2020-02-20 13:13:45 +0000 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2020-02-21 09:53:00 +0000 |
commit | 39a233a0aa21c644c78ddd4ffa0ab3cdb1c10318 (patch) | |
tree | 0f6802f10d4ebb8115b03d6a6a1b28deb195c16a /src | |
parent | d1586962a5f8f14fb81c930174d12d0453adaab8 (diff) |
ip: Unintialized variables in prefx setup (coverity warning)
Type: fix
Change-Id: I048c9ed423ca2993d2179cdce364ac98980311bb
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/vnet/ip/ip6_ll_table.c | 1 | ||||
-rw-r--r-- | src/vnet/ip/ip_types_api.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/ip/ip6_ll_table.c b/src/vnet/ip/ip6_ll_table.c index 243b94a6c0e..75489ea08e3 100644 --- a/src/vnet/ip/ip6_ll_table.c +++ b/src/vnet/ip/ip6_ll_table.c @@ -99,6 +99,7 @@ ip6_ll_prefix_to_fib (const ip6_ll_prefix_t * ilp, fib_prefix_t * fp) fp->fp_proto = FIB_PROTOCOL_IP6; fp->fp_len = 128; fp->fp_addr.ip6 = ilp->ilp_addr; + fp->___fp___pad = 0; } fib_node_index_t diff --git a/src/vnet/ip/ip_types_api.c b/src/vnet/ip/ip_types_api.c index e9be1c613b6..0f7f0e530f9 100644 --- a/src/vnet/ip/ip_types_api.c +++ b/src/vnet/ip/ip_types_api.c @@ -238,6 +238,7 @@ ip_mprefix_decode (const vl_api_mprefix_t * in, mfib_prefix_t * out) out->fp_proto = (ADDRESS_IP6 == clib_net_to_host_u32 (in->af) ? FIB_PROTOCOL_IP6 : FIB_PROTOCOL_IP4); out->fp_len = clib_net_to_host_u16 (in->grp_address_length); + out->___fp___pad = 0; ip_address_union_decode (&in->grp_address, in->af, &out->fp_grp_addr); ip_address_union_decode (&in->src_address, in->af, &out->fp_src_addr); |