mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 00:13:40 +00:00
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:
parent
7df2e1c379
commit
98280b73e5
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user