mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 13:27:53 +00:00
zebra: top has already been derefed
The top variable has already been derefed by the time we get to the test to see if it is non-NULL. No need to check it. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
19d95d40c0
commit
9275682559
@ -1486,7 +1486,7 @@ static int nexthop_active(afi_t afi, struct route_entry *re,
|
|||||||
* resolved by a route NH1. The exception is if the route is a
|
* resolved by a route NH1. The exception is if the route is a
|
||||||
* host route.
|
* host route.
|
||||||
*/
|
*/
|
||||||
if (top && rn == top)
|
if (rn == top)
|
||||||
if (((afi == AFI_IP) && (rn->p.prefixlen != 32))
|
if (((afi == AFI_IP) && (rn->p.prefixlen != 32))
|
||||||
|| ((afi == AFI_IP6) && (rn->p.prefixlen != 128))) {
|
|| ((afi == AFI_IP6) && (rn->p.prefixlen != 128))) {
|
||||||
if (IS_ZEBRA_DEBUG_RIB_DETAILED)
|
if (IS_ZEBRA_DEBUG_RIB_DETAILED)
|
||||||
|
Loading…
Reference in New Issue
Block a user