From eb8ed382bee3e7fcddb08b9a4ede70513e062cb7 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Mon, 14 Mar 2016 15:08:04 +0900 Subject: server: fix bug of soft-reset-out p, which is newly filtered by export filter stays in peer.localRib. we mustn't change IsWithdraw flag of it. Signed-off-by: ISHIDA Wataru --- server/server.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/server.go b/server/server.go index a7245198..9588ecd5 100644 --- a/server/server.go +++ b/server/server.go @@ -2100,8 +2100,7 @@ func (server *BgpServer) handleGrpc(grpcReq *GrpcRequest) []*SenderMsg { } } if found { - p.IsWithdraw = true - withdrawnList = append(withdrawnList, p) + withdrawnList = append(withdrawnList, p.Clone(true)) } } msgs = append(msgs, newSenderMsg(peer, table.CreateUpdateMsgFromPaths(withdrawnList))) -- cgit v1.2.3