summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vnet/lisp-cp/control.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/lisp-cp/control.c b/src/vnet/lisp-cp/control.c
index c7853ca73fb..5c90c03b9f0 100644
--- a/src/vnet/lisp-cp/control.c
+++ b/src/vnet/lisp-cp/control.c
@@ -1346,6 +1346,7 @@ vnet_lisp_use_petr (ip_address_t * ip, u8 is_add)
if (is_add)
{
/* Create dummy petr locator-set */
+ memset (&loc, 0, sizeof (loc));
gid_address_from_ip (&loc.address, ip);
loc.priority = 1;
loc.state = loc.weight = 1;