summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_updgrp_adv.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-01-06 15:58:21 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-01-06 15:58:21 +0100
commit3b14d86eed3c042db718c7e006ca5299f473c88e (patch)
tree4efde6b2d77f5229ace3375da3471b0db1daa695 /bgpd/bgp_updgrp_adv.c
parentMerge pull request #43 from pguibert6WIND/frr_6wind_mpbgpgracefulrestart_1 (diff)
parentMerge pull request #41 from donaldsharp/quagga_to_frr (diff)
downloadfrr-3b14d86eed3c042db718c7e006ca5299f473c88e.tar.xz
frr-3b14d86eed3c042db718c7e006ca5299f473c88e.zip
Merge remote-tracking branch 'origin/stable/2.0'
Diffstat (limited to 'bgpd/bgp_updgrp_adv.c')
-rw-r--r--bgpd/bgp_updgrp_adv.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bgpd/bgp_updgrp_adv.c b/bgpd/bgp_updgrp_adv.c
index 9a103de91..df154d976 100644
--- a/bgpd/bgp_updgrp_adv.c
+++ b/bgpd/bgp_updgrp_adv.c
@@ -573,8 +573,9 @@ subgroup_clear_table (struct update_subgroup *subgrp)
SUBGRP_FOREACH_ADJ_SAFE (subgrp, aout, taout)
{
- bgp_adj_out_remove_subgroup (aout->rn, aout, subgrp);
- bgp_unlock_node (aout->rn);
+ struct bgp_node *rn = aout->rn;
+ bgp_adj_out_remove_subgroup (rn, aout, subgrp);
+ bgp_unlock_node (rn);
}
}