forked from Mirror/frr
pimd: uninitialized memory access fix
Signed-off-by: F. Aragon <paco@voltanet.io>
This commit is contained in:
parent
79d702c130
commit
431f21d38e
|
@ -430,6 +430,9 @@ int pim_ecmp_nexthop_search(struct pim_instance *pim,
|
|||
if (!pnc || !pnc->nexthop_num || !nexthop)
|
||||
return 0;
|
||||
|
||||
memset(&nbrs, 0, sizeof(nbrs));
|
||||
memset(&ifps, 0, sizeof(ifps));
|
||||
|
||||
// Current Nexthop is VALID, check to stay on the current path.
|
||||
if (nexthop->interface && nexthop->interface->info
|
||||
&& nexthop->mrib_nexthop_addr.u.prefix4.s_addr
|
||||
|
@ -829,6 +832,9 @@ int pim_ecmp_nexthop_lookup(struct pim_instance *pim,
|
|||
return 0;
|
||||
}
|
||||
|
||||
memset(&nbrs, 0, sizeof(nbrs));
|
||||
memset(&ifps, 0, sizeof(ifps));
|
||||
|
||||
/*
|
||||
* Look up all interfaces and neighbors,
|
||||
* store for later usage
|
||||
|
|
Loading…
Reference in a new issue