diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-11-15 20:29:46 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-11-16 14:51:46 +0900 |
commit | 8856dd599a7327bc099ed9cb4798539794d4dba7 (patch) | |
tree | cab356252291b4b670e74e4fe88f77879df9bc89 /pkg/server/server.go | |
parent | c1bca2555919f9f2a7dd9d13dc3e14a4bf6a589a (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/server/server.go')
-rw-r--r-- | pkg/server/server.go | 3 |
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 } |