diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/peer.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server/peer.go b/server/peer.go index 702da772..b8dd2781 100644 --- a/server/peer.go +++ b/server/peer.go @@ -122,9 +122,12 @@ func (peer *Peer) handleREST(restReq *api.RestRequest) { func (peer *Peer) handlePeermessage(m *message) { sendpath := func(pList []table.Path, wList []table.Path) { pathList := append([]table.Path(nil), pList...) + pathList = append(pathList, wList...) for _, p := range wList { - pathList = append(pathList, p.Clone(true)) + if !p.IsWithdraw() { + log.Fatal("withdraw pathlist has non withdraw path") + } } peer.adjRib.UpdateOut(pathList) peer.sendMessages(peer.path2update(pathList)) |