]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: ifp must be a real pointer sometimes
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 4 May 2019 00:06:55 +0000 (20:06 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 3 May 2019 09:05:19 +0000 (05:05 -0400)
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 <sharpd@cumulusnetworks.com>
zebra/zebra_rib.c

index 2994911165f6bd35ced95d0946896f960006e881..026fa41af57c0c0065407b5dca32944bb5bb2aad 100644 (file)
@@ -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;
                }
        }