fib: Uninitialised pad in the prefix (coverity warning)
Type: fix Change-Id: Ia61d6fbf6e80977f83f1f6672e5e83b52ddeb0e5 Signed-off-by: Neale Ranns <nranns@cisco.com> (cherry picked from commit ea96e92361b483962fd2a6b027cedc02f3bb6f93)
This commit is contained in:
parent
b96c1c4569
commit
d243b03eef
@ -89,6 +89,7 @@ fib_prefix_from_ip46_addr (const ip46_address_t *addr,
|
||||
pfx->fp_len = ((ip46_address_is_ip4(addr) ?
|
||||
32 : 128));
|
||||
pfx->fp_addr = *addr;
|
||||
pfx->___fp___pad = 0;
|
||||
}
|
||||
|
||||
void
|
||||
@ -100,6 +101,7 @@ fib_prefix_from_mpls_label (mpls_label_t label,
|
||||
pfx->fp_len = 21;
|
||||
pfx->fp_label = label;
|
||||
pfx->fp_eos = eos;
|
||||
pfx->___fp___pad = 0;
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
x
Reference in New Issue
Block a user