diff options
Diffstat (limited to 'bgpd/bgp_route.c')
-rw-r--r-- | bgpd/bgp_route.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 875ff648..6553b3ff 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -1570,7 +1570,7 @@ bgp_process_main (struct work_queue *wq, work_queue_item item) struct bgp_node *rn ; afi_t afi ; safi_t safi ; - struct prefix *p = &rn->p; + struct prefix *p ; struct bgp_info *new_select; struct bgp_info *old_select; struct bgp_info_pair old_and_new; @@ -1591,6 +1591,8 @@ bgp_process_main (struct work_queue *wq, work_queue_item item) afi = rn->table->afi; safi = rn->table->safi; + p = &rn->p ; + /* Best path selection. */ bgp_best_selection (bgp, rn, &old_and_new); old_select = old_and_new.old; |