summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--pkg/server/peer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/server/peer.go b/pkg/server/peer.go
index 6d692881..1c2e7d41 100644
--- a/pkg/server/peer.go
+++ b/pkg/server/peer.go
@@ -497,8 +497,8 @@ func (peer *peer) handleUpdate(e *fsmMsg) ([]*table.Path, []bgp.RouteFamily, *bg
// RFC4456 8. Avoiding Routing Information Loops
// A router that recognizes the ORIGINATOR_ID attribute SHOULD
// ignore a route received with its BGP Identifier as the ORIGINATOR_ID.
- peer.fsm.lock.RLock()
isIBGPPeer := peer.isIBGPPeer()
+ peer.fsm.lock.RLock()
routerId := peer.fsm.gConf.Config.RouterId
peer.fsm.lock.RUnlock()
if isIBGPPeer {