diff options
| -rw-r--r-- | bgpd/bgp_fsm.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c index 84710c0553..c79d3b001a 100644 --- a/bgpd/bgp_fsm.c +++ b/bgpd/bgp_fsm.c @@ -1351,14 +1351,11 @@ bgp_start (struct peer *peer) static int bgp_reconnect (struct peer *peer) { - int ret = 0; - - if (bgp_stop (peer) > 0) - bgp_start (peer); - else - ret = -1; + if (bgp_stop (peer) < 0) + return -1; - return ret; + bgp_start (peer); + return 0; } static int |
