diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/gobgp/neighbor.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/gobgp/neighbor.go b/cmd/gobgp/neighbor.go index 9acb4f18..2a1075da 100644 --- a/cmd/gobgp/neighbor.go +++ b/cmd/gobgp/neighbor.go @@ -63,6 +63,9 @@ func getNeighbors(address string, enableAdv bool) ([]*api.Peer, error) { Address: address, EnableAdvertised: enableAdv, }) + if err != nil { + return nil, err + } l := make([]*api.Peer, 0, 1024) for { |