summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2020-02-20 13:10:47 +0000
committerDave Wallace <dwallacelf@gmail.com>2020-08-12 23:27:46 +0000
commitd243b03eef76593eba148ca94a5bb87ad9f889a2 (patch)
tree2207eee42ca3d9847b4e49391421d6fd5cb781b2
parentb96c1c456963d73023111e7ff221ede3ba79c17d (diff)
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)
-rw-r--r--src/vnet/fib/fib_types.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/fib/fib_types.c b/src/vnet/fib/fib_types.c
index a037750f476..686137e66d2 100644
--- a/src/vnet/fib/fib_types.c
+++ b/src/vnet/fib/fib_types.c
@@ -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