summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zebra/interface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/interface.c b/zebra/interface.c
index 87bb49042a..59563834ef 100644
--- a/zebra/interface.c
+++ b/zebra/interface.c
@@ -1436,7 +1436,8 @@ static void zebra_if_netconf_update_ctx(struct zebra_dplane_ctx *ctx,
if (IS_ZEBRA_DEBUG_KERNEL)
zlog_debug(
"%s: if %s(%u) zebra info pointer is NULL",
- __func__, ifp->name, ifp->ifindex);
+ __func__, ifp ? ifp->name : "(null)",
+ ifp ? ifp->ifindex : ifindex);
return;
}
if (afi == AFI_IP) {