From 98280b73e5a0c43f00a33dce5d0671f489bb2a67 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 7 Feb 2017 14:34:37 -0500 Subject: [PATCH] bgpd: Fix uninitialized data Calling zapi_ipv[4|6]_route assumes we set the instance appropriately. Signed-off-by: Donald Sharp --- bgpd/rfapi/vnc_zebra.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bgpd/rfapi/vnc_zebra.c b/bgpd/rfapi/vnc_zebra.c index 85baa13301..23b6e9dbb4 100644 --- a/bgpd/rfapi/vnc_zebra.c +++ b/bgpd/rfapi/vnc_zebra.c @@ -546,6 +546,7 @@ vnc_zebra_route_msg ( api.nexthop_num = nhp_count; api.nexthop = nhp_ary; api.ifindex_num = 0; + api.instance = 0; if (BGP_DEBUG (zebra, ZEBRA)) { @@ -580,6 +581,7 @@ vnc_zebra_route_msg ( SET_FLAG (api.message, ZAPI_MESSAGE_IFINDEX); api.ifindex_num = 1; api.ifindex = &ifindex; + api.instance = 0; if (BGP_DEBUG (zebra, ZEBRA)) { -- 2.39.5