summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2022-09-20 11:17:03 -0400
committerGitHub <noreply@github.com>2022-09-20 11:17:03 -0400
commit6f42ff7691f78da3784d276e4ef343b7ac40d2e3 (patch)
treefa25b68f339ae1d486deba6d8d5f20cc9aeeafc4
parentfbd3e84531ad2cdd39e02ec71a85ffc1d471e536 (diff)
parentbbc521068603e7b63307d0fd53ba324a1b7d04fe (diff)
Merge pull request #11956 from opensourcerouting/fix/bgpd_unlocks
bgpd: Don't forget bgp_dest_unlock_node before return
-rw-r--r--bgpd/bgp_route.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index 162a7ed881..eb00287890 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -6014,6 +6014,7 @@ void bgp_static_update(struct bgp *bgp, const struct prefix *p,
/* Unintern original. */
aspath_unintern(&attr.aspath);
bgp_static_withdraw(bgp, p, afi, safi);
+ bgp_dest_unlock_node(dest);
return;
}
@@ -6340,6 +6341,7 @@ static void bgp_static_update_safi(struct bgp *bgp, const struct prefix *p,
aspath_unintern(&attr.aspath);
bgp_static_withdraw_safi(bgp, p, afi, safi,
&bgp_static->prd);
+ bgp_dest_unlock_node(dest);
return;
}