summaryrefslogtreecommitdiff
path: root/bgpd
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <jafar@atcorp.com>2025-02-24 17:17:27 -0600
committerJafar Al-Gharaibeh <jafar@atcorp.com>2025-02-25 08:58:34 -0600
commit094363f8bd90101297e02909b77a1607fbaa6586 (patch)
tree075cb327c3978e827280b1d963e415e2101edac7 /bgpd
parentbc6c7f60dcbf14d74ed5164e34fd3a6adc35495c (diff)
Revert "bgpd: fix process_queue when un-hiding"
This reverts commit a2c1956efa399c6770605712d0b53e5f24979acc. Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/bgpd.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c
index edda82b63c..7b60c4fc17 100644
--- a/bgpd/bgpd.c
+++ b/bgpd/bgpd.c
@@ -4257,11 +4257,12 @@ int bgp_delete(struct bgp *bgp)
bgp_set_evpn(bgp_get_default());
}
- if (!IS_BGP_INSTANCE_HIDDEN(bgp)) {
- if (bgp->process_queue)
- work_queue_free_and_null(&bgp->process_queue);
+ if (bgp->process_queue)
+ work_queue_free_and_null(&bgp->process_queue);
+
+ if (!IS_BGP_INSTANCE_HIDDEN(bgp))
bgp_unlock(bgp); /* initial reference */
- } else {
+ else {
for (afi = AFI_IP; afi < AFI_MAX; afi++) {
enum vpn_policy_direction dir;