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)
This commit is contained in:
Neale Ranns
committed by
Dave Wallace
parent
ee0c564c31
commit
08653d9d6c
@ -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_proto = FIB_PROTOCOL_IP6;
|
||||||
fp->fp_len = 128;
|
fp->fp_len = 128;
|
||||||
fp->fp_addr.ip6 = ilp->ilp_addr;
|
fp->fp_addr.ip6 = ilp->ilp_addr;
|
||||||
|
fp->___fp___pad = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
fib_node_index_t
|
fib_node_index_t
|
||||||
|
@ -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) ?
|
out->fp_proto = (ADDRESS_IP6 == clib_net_to_host_u32 (in->af) ?
|
||||||
FIB_PROTOCOL_IP6 : FIB_PROTOCOL_IP4);
|
FIB_PROTOCOL_IP6 : FIB_PROTOCOL_IP4);
|
||||||
out->fp_len = clib_net_to_host_u16 (in->grp_address_length);
|
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->grp_address, in->af, &out->fp_grp_addr);
|
||||||
ip_address_union_decode (&in->src_address, in->af, &out->fp_src_addr);
|
ip_address_union_decode (&in->src_address, in->af, &out->fp_src_addr);
|
||||||
|
Reference in New Issue
Block a user