diff options
author | Stephen Worley <sworley@cumulusnetworks.com> | 2020-05-24 22:08:36 +0200 |
---|---|---|
committer | Stephen Worley <sworley@cumulusnetworks.com> | 2020-09-28 18:40:59 +0200 |
commit | 9c6c48bc101f8f4b47fa9f373e436c85d04608cf (patch) | |
tree | 8fb77ef16ad9c26391472970a2e654ddefd7c6cf /zebra/zebra_nhg.c | |
parent | zebra: fix releasing proto-owned singletons (diff) | |
download | frr-9c6c48bc101f8f4b47fa9f373e436c85d04608cf.tar.xz frr-9c6c48bc101f8f4b47fa9f373e436c85d04608cf.zip |
zebra: return the proto nhe on del even with refs
Return the proto nhe on del even if their are still possible
route references.
We may get a del before the routes are removed. So we still need
to return this to the caller so they can decrement the ref.
Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to '')
-rw-r--r-- | zebra/zebra_nhg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_nhg.c b/zebra/zebra_nhg.c index 483b911b3..b4d7df0b5 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) |