diff options
Diffstat (limited to 'server/peer.go')
-rw-r--r-- | server/peer.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/peer.go b/server/peer.go index 61a229ee..c635b2b1 100644 --- a/server/peer.go +++ b/server/peer.go @@ -127,9 +127,9 @@ func (peer *Peer) handleBGPmessage(m *bgp.BGPMessage) { holdTime := float64(body.HoldTime) myHoldTime := peer.fsm.peerConfig.Timers.HoldTime if holdTime > myHoldTime { - peer.fsm.negotiatedHoldTime = holdTime - } else { peer.fsm.negotiatedHoldTime = myHoldTime + } else { + peer.fsm.negotiatedHoldTime = holdTime } case bgp.BGP_MSG_ROUTE_REFRESH: |