From cb19260575107caa1ba17df1a6c2c9918f4009a2 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Tue, 19 Apr 2016 07:57:40 +0000 Subject: server: fix bug of BgpServer.PeerDelete() `GrpcRequest.Data` is supposed to be `*Peer` not `Peer` Signed-off-by: ISHIDA Wataru --- server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server') diff --git a/server/server.go b/server/server.go index acb15932..a2bd40e8 100644 --- a/server/server.go +++ b/server/server.go @@ -1069,7 +1069,7 @@ func (server *BgpServer) PeerDelete(peer config.Neighbor) error { ch := make(chan *GrpcResponse) server.GrpcReqCh <- &GrpcRequest{ RequestType: REQ_DEL_NEIGHBOR, - Data: peer, + Data: &peer, ResponseCh: ch, } return (<-ch).Err() -- cgit v1.2.3