diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-04-17 02:25:37 +0000 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-04-17 07:47:32 +0000 |
commit | 46033d74fb127cc5b080f766c971bca2b65a4647 (patch) | |
tree | 1ecca998b3bf971be8e27c63a84f3864b4430110 /server | |
parent | 9d6b0d5025eeb3952acf82506c46411f1fdba841 (diff) |
server: bug fix of REQ_LOCAL_RIB handling
When route family is not supported for a peer's local rib,
gobgpd dies with following message.
$ gobgp show neighbor 10.0.0.1 local evpn
> panic: interface conversion: interface is nil, not *api.Destination
this patch fix this.
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server')
-rw-r--r-- | server/peer.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/peer.go b/server/peer.go index 142c801d..494aea42 100644 --- a/server/peer.go +++ b/server/peer.go @@ -400,9 +400,9 @@ func (peer *Peer) handleGrpc(grpcReq *GrpcRequest) { result.Data = dst.ToApiStruct() grpcReq.ResponseCh <- result } - close(grpcReq.ResponseCh) - return } + close(grpcReq.ResponseCh) + return case REQ_NEIGHBOR_SHUTDOWN: peer.outgoing <- bgp.NewBGPNotificationMessage(bgp.BGP_ERROR_CEASE, bgp.BGP_ERROR_SUB_ADMINISTRATIVE_SHUTDOWN, nil) case REQ_NEIGHBOR_RESET: |