summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_fsm.c
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd/bgp_fsm.c')
-rw-r--r--bgpd/bgp_fsm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c
index d26e7e6e..cb899797 100644
--- a/bgpd/bgp_fsm.c
+++ b/bgpd/bgp_fsm.c
@@ -1924,7 +1924,8 @@ static bgp_fsm_action(bgp_fsm_recv_open)
bgp_connection loser ;
/* NB: bgp_id in open_state is in *host* order */
- loser = (session->open_send->bgp_id < sibling->open_recv->bgp_id)
+ loser = (ntohl(session->open_send->bgp_id) <
+ ntohl(sibling->open_recv->bgp_id))
? connection
: sibling ;