bgpd: Fix uninitialized data

Calling zapi_ipv[4|6]_route assumes we
set the instance appropriately.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2017-02-07 14:34:37 -05:00
parent 7df2e1c379
commit 98280b73e5

View File

@ -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))
{