lisp: fix coverity warnings 31/28331/2
authorFlorin Coras <fcoras@cisco.com>
Thu, 20 Feb 2020 16:11:23 +0000 (16:11 +0000)
committerDave Wallace <dwallacelf@gmail.com>
Wed, 12 Aug 2020 23:14:21 +0000 (23:14 +0000)
Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ie060b25b5e8c85d9b2037e300723a2b6023c65d1
(cherry picked from commit 6ce954f8e4446472689146024126ba42da182aa9)

src/vnet/lisp-cp/control.c

index 420a6db..d2cc8da 100644 (file)
@@ -142,6 +142,7 @@ ip_address_to_fib_prefix (const ip_address_t * addr, fib_prefix_t * prefix)
       prefix->fp_proto = FIB_PROTOCOL_IP6;
       memcpy (&prefix->fp_addr.ip6, &addr->ip, sizeof (prefix->fp_addr.ip6));
     }
+  prefix->___fp___pad = 0;
 }
 
 /**