diff options
author | luoyaozu <luoyaozu@chinatelecom.cn> | 2022-08-14 12:55:48 +0800 |
---|---|---|
committer | luoyaozu <luoyaozu@foxmail.com> | 2022-08-14 13:17:46 +0800 |
commit | b5339c64d1100463058d1719ea23e0af353ce697 (patch) | |
tree | 4949ce6ac57b1df5d707b90ec06a2badb7da4bec | |
parent | 57cf5087e0ccd5ae3a049f5036038af42de800ea (diff) |
vrrp: fix SIGABRT crash by ASSERT() when deleting vrrp vr(MASTER state)
we need cancel vrrp_vr_timer when deleting vrrp vr
Type: fix
Signed-off-by: luoyaozu <luoyaozu@chinatelecom.cn>
Change-Id: I8ea01f1943d6e3e60c4990c5be945de613bc8b53
-rw-r--r-- | src/plugins/vrrp/vrrp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/vrrp/vrrp.c b/src/plugins/vrrp/vrrp.c index f1ab1b27185..12f4daee989 100644 --- a/src/plugins/vrrp/vrrp.c +++ b/src/plugins/vrrp/vrrp.c @@ -815,6 +815,7 @@ vrrp_vr_del_common (vrrp_vr_t *vr, vrrp_vr_key_t *key) vrrp_main_t *vrm = &vrrp_main; ip46_address_t *vr_addrs_del_copy; + vrrp_vr_timer_cancel (vr); vrrp_vr_tracking_ifs_add_del (vr, vr->tracking.interfaces, 0); vr_addrs_del_copy = vec_dup (vr->config.vr_addrs); vrrp_vr_addrs_add_del (vr, 0, vr_addrs_del_copy); |