diff options
Diffstat (limited to 'bgpd/bgp_table.c')
| -rw-r--r-- | bgpd/bgp_table.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/bgpd/bgp_table.c b/bgpd/bgp_table.c index 01efab8f2d..2ef272b571 100644 --- a/bgpd/bgp_table.c +++ b/bgpd/bgp_table.c @@ -141,13 +141,14 @@ void bgp_delete_listnode(struct bgp_node *node) */ if (CHECK_FLAG(node->flags, BGP_NODE_SELECT_DEFER)) { table = bgp_node_table(node); - if (table) + + if (table) { bgp = table->bgp; + afi = table->afi; + safi = table->safi; + } rn = bgp_node_to_rnode(node); - afi = table->afi; - safi = table->safi; - if (bgp && rn && rn->lock == 1) { /* Delete the route from the selection pending list */ if ((node->rt_node) && |
