File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,8 @@ static void nhrp_cache_free(struct nhrp_cache *c)
7474 notifier_call (& c -> notifier_list , NOTIFY_CACHE_DELETE );
7575 assert (!notifier_active (& c -> notifier_list ));
7676 hash_release (nifp -> cache_hash , c );
77+ if (c -> cur .peer )
78+ nhrp_peer_notify_del (c -> cur .peer , & c -> peer_notifier );
7779 THREAD_OFF (c -> t_timeout );
7880 THREAD_OFF (c -> t_auth );
7981 XFREE (MTYPE_NHRP_CACHE , c );
Original file line number Diff line number Diff line change @@ -87,13 +87,13 @@ static void nhrp_request_stop(void)
8787 debugf (NHRP_DEBUG_COMMON , "Exiting..." );
8888 frr_early_fini ();
8989
90- nhrp_shortcut_terminate ();
90+ vrf_terminate ();
9191 nhrp_nhs_terminate ();
9292 nhrp_zebra_terminate ();
9393 vici_terminate ();
9494 evmgr_terminate ();
9595 nhrp_vc_terminate ();
96- vrf_terminate ();
96+ nhrp_shortcut_terminate ();
9797
9898 debugf (NHRP_DEBUG_COMMON , "Done." );
9999 frr_fini ();
Original file line number Diff line number Diff line change @@ -49,7 +49,8 @@ static void nhrp_peer_check_delete(struct nhrp_peer *p)
4949
5050 THREAD_OFF (p -> t_fallback );
5151 THREAD_OFF (p -> t_timer );
52- hash_release (nifp -> peer_hash , p );
52+ if (nifp -> peer_hash )
53+ hash_release (nifp -> peer_hash , p );
5354 nhrp_interface_notify_del (p -> ifp , & p -> ifp_notifier );
5455 nhrp_vc_notify_del (p -> vc , & p -> vc_notifier );
5556 XFREE (MTYPE_NHRP_PEER , p );
You can’t perform that action at this time.
0 commit comments