diff --git a/zebra/zebra_nhg.c b/zebra/zebra_nhg.c index 483b911b31..b4d7df0b53 100644 --- a/zebra/zebra_nhg.c +++ b/zebra/zebra_nhg.c @@ -2838,7 +2838,7 @@ struct nhg_hash_entry *zebra_nhg_proto_del(uint32_t id) zlog_debug( "%s: id %u, still being used by routes refcnt %u", __func__, nhe->id, nhe->refcnt); - return NULL; + return nhe; } if (IS_ZEBRA_DEBUG_NHG_DETAIL)