zebra: When deleting nexthop group entries ensure the thread is off

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2022-07-16 19:00:43 -04:00
parent 05a95ab8ad
commit 9d1fec4c7e

View File

@ -1611,6 +1611,8 @@ void zebra_nhg_free(struct nhg_hash_entry *nhe)
nhe->nhg.nexthop);
}
THREAD_OFF(nhe->timer);
if (nhe->refcnt)
zlog_debug("nhe_id=%pNG hash refcnt=%d", nhe, nhe->refcnt);