summaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-05-03 16:38:14 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-05-05 23:29:00 +0900
commit58bff63736bb058df44064bff3cb443e2675befb (patch)
tree63474f50dd55ffe8c952cfc2e6c2e5691cc93f1c /server
parent2a0751f07baff748b40b074d4edbfb460fc76af7 (diff)
fix 332766189685028c4f9852e4285fb1a9025223cc regression
We can't send a path to a peer if the peer isn't configured for its family. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server')
-rw-r--r--server/peer.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/peer.go b/server/peer.go
index d191e734..8d517dee 100644
--- a/server/peer.go
+++ b/server/peer.go
@@ -171,7 +171,9 @@ func (peer *Peer) processOutgoingPaths(paths, withdrawals []*table.Path) []*tabl
outgoing := make([]*table.Path, 0, len(paths))
for _, path := range withdrawals {
if path.IsLocal() {
- outgoing = append(outgoing, path)
+ if _, ok := peer.fsm.rfMap[path.GetRouteFamily()]; ok {
+ outgoing = append(outgoing, path)
+ }
}
}