summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2020-02-20 13:13:45 +0000
committerDave Wallace <dwallacelf@gmail.com>2020-08-12 23:18:24 +0000
commit08653d9d6cabe5053e2c9e199d96fbf7d6107c5f (patch)
treebc6bc02088f546fb5cc3250373e9f9eed31a1d3a
parentee0c564c31f44b1223abf5d1597cafa324ac7dcd (diff)
ip: Unintialized variables in prefx setup (coverity warning)
Type: fix Change-Id: I048c9ed423ca2993d2179cdce364ac98980311bb Signed-off-by: Neale Ranns <nranns@cisco.com> (cherry picked from commit 39a233a0aa21c644c78ddd4ffa0ab3cdb1c10318)
-rw-r--r--src/vnet/ip/ip6_ll_table.c1
-rw-r--r--src/vnet/ip/ip_types_api.c1
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 a7440ea543c..93eb94ecc82 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);