summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--server/server.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/server.go b/server/server.go
index 7b1617ee..ed57b42e 100644
--- a/server/server.go
+++ b/server/server.go
@@ -534,6 +534,10 @@ func (server *BgpServer) dropPeerAllRoutes(peer *Peer) []*SenderMsg {
if !targetPeer.isRouteServerClient() || targetPeer == peer || targetPeer.fsm.state != bgp.BGP_FSM_ESTABLISHED {
continue
}
+ if _, ok := targetPeer.rfMap[rf]; !ok {
+ continue
+ }
+
i := 0
for _, dst := range dsts {
feed := dst.NewFeed(targetPeer.TableID())