diff options
author | Anuradha Karuppiah <anuradhak@cumulusnetworks.com> | 2020-05-26 15:24:17 +0200 |
---|---|---|
committer | Anuradha Karuppiah <anuradhak@cumulusnetworks.com> | 2020-09-23 15:46:19 +0200 |
commit | 2b9e207e0e49222cdcdf6eed5d63d6dfee76dc2a (patch) | |
tree | 7a4dd360b637bee4f240fdc86386f37937f90337 /zebra/zebra_evpn_neigh.c | |
parent | zebra: fix deletion of evpn mh neigh-holdtime (diff) | |
download | frr-2b9e207e0e49222cdcdf6eed5d63d6dfee76dc2a.tar.xz frr-2b9e207e0e49222cdcdf6eed5d63d6dfee76dc2a.zip |
zebra: stop neigh hold timer when the neigh is deleted
The neigh hold timer was firing after the neigh was deleted resulting
in the following crash -
[
at ./zebra/zebra_evpn_neigh.h:155
at zebra/zebra_evpn_neigh.c:447
at lib/thread.c:1578
at zebra/main.c:488
]
Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_evpn_neigh.c')
-rw-r--r-- | zebra/zebra_evpn_neigh.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/zebra_evpn_neigh.c b/zebra/zebra_evpn_neigh.c index 661d1c7f8..6a76a475e 100644 --- a/zebra/zebra_evpn_neigh.c +++ b/zebra/zebra_evpn_neigh.c @@ -614,6 +614,9 @@ int zebra_evpn_neigh_del(zebra_evpn_t *zevpn, zebra_neigh_t *n) /* Cancel auto recovery */ THREAD_OFF(n->dad_ip_auto_recovery_timer); + /* Cancel proxy hold timer */ + zebra_evpn_neigh_stop_hold_timer(n); + /* Free the VNI hash entry and allocated memory. */ tmp_n = hash_release(zevpn->neigh_table, n); XFREE(MTYPE_NEIGH, tmp_n); |