From 4bb55bbecc67b33c4f72bf88f6f9c73330a1f44a Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 3 May 2019 20:06:55 -0400 Subject: [PATCH] zebra: ifp must be a real pointer sometimes The ifp pointer must be pointing at a real location in memory since right above us in this loop we return if it is. Signed-off-by: Donald Sharp --- zebra/zebra_rib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index 2994911165..026fa41af5 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -474,8 +474,7 @@ static int nexthop_active(afi_t afi, struct route_entry *re, if (IS_ZEBRA_DEBUG_RIB_DETAILED) zlog_debug( "\t%s: Interface %s is not unnumbered", - __PRETTY_FUNCTION__, - ifp ? ifp->name : "Unknown"); + __PRETTY_FUNCTION__, ifp->name); return 0; } }