File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,8 @@ static void nhrp_cache_free(struct nhrp_cache *c)
7070 notifier_call (& c -> notifier_list , NOTIFY_CACHE_DELETE );
7171 assert (!notifier_active (& c -> notifier_list ));
7272 hash_release (nifp -> cache_hash , c );
73+ if (c -> cur .peer )
74+ nhrp_peer_notify_del (c -> cur .peer , & c -> peer_notifier );
7375 nhrp_peer_unref (c -> cur .peer );
7476 nhrp_peer_unref (c -> new .peer );
7577 EVENT_OFF (c -> t_timeout );
Original file line number Diff line number Diff line change @@ -45,7 +45,8 @@ static void nhrp_peer_check_delete(struct nhrp_peer *p)
4545
4646 EVENT_OFF (p -> t_fallback );
4747 EVENT_OFF (p -> t_timer );
48- hash_release (nifp -> peer_hash , p );
48+ if (nifp -> peer_hash )
49+ hash_release (nifp -> peer_hash , p );
4950 nhrp_interface_notify_del (p -> ifp , & p -> ifp_notifier );
5051 nhrp_vc_notify_del (p -> vc , & p -> vc_notifier );
5152 XFREE (MTYPE_NHRP_PEER , p );
You can’t perform that action at this time.
0 commit comments