summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-11-15 20:29:46 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-11-16 14:51:46 +0900
commit8856dd599a7327bc099ed9cb4798539794d4dba7 (patch)
treecab356252291b4b670e74e4fe88f77879df9bc89 /pkg
parentc1bca2555919f9f2a7dd9d13dc3e14a4bf6a589a (diff)
server: fix handleRouteRefresh()
Can't modify a Path object in a table. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/server/server.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/server/server.go b/pkg/server/server.go
index ce4f3b22..5df03680 100644
--- a/pkg/server/server.go
+++ b/pkg/server/server.go
@@ -946,8 +946,7 @@ func (s *BgpServer) handleRouteRefresh(peer *peer, e *fsmMsg) []*table.Path {
rfList := []bgp.RouteFamily{rf}
accepted, filtered := s.getBestFromLocal(peer, rfList)
for _, path := range filtered {
- path.IsWithdraw = true
- accepted = append(accepted, path)
+ accepted = append(accepted, path.Clone(true))
}
return accepted
}