diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-10-07 22:30:35 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-10-08 00:18:03 +0900 |
commit | 477869cfec7032b4b4aaac9e5508a951246caf2d (patch) | |
tree | 402ecacfe88eb1a40b9068f5373850fa178d0f39 /server | |
parent | 4a54eacf57d64948d73beabe7c3a33f6c7a1703e (diff) |
server: resetting accepted must be after error checking
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server')
-rw-r--r-- | server/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/server.go b/server/server.go index 261f3e9a..d69d2f1e 100644 --- a/server/server.go +++ b/server/server.go @@ -1457,10 +1457,10 @@ func (server *BgpServer) handleGrpc(grpcReq *GrpcRequest) []*SenderMsg { case REQ_NEIGHBOR_SOFT_RESET, REQ_NEIGHBOR_SOFT_RESET_IN: peer, err := server.checkNeighborRequest(grpcReq) - peer.accepted = 0 if err != nil { break } + peer.accepted = 0 if grpcReq.RequestType == REQ_NEIGHBOR_SOFT_RESET { logOp(peer, "Neighbor soft reset") } else { |