From 8856dd599a7327bc099ed9cb4798539794d4dba7 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Thu, 15 Nov 2018 20:29:46 +0900 Subject: server: fix handleRouteRefresh() Can't modify a Path object in a table. Signed-off-by: FUJITA Tomonori --- pkg/server/server.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pkg') 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 } -- cgit v1.2.3