summaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
authorImcom Jin <jinyu.bjut@gmail.com>2020-09-25 11:29:59 +0800
committerImcom Jin <jinyu.bjut@gmail.com>2020-09-25 11:29:59 +0800
commit1ee998cc8bb84e2178f4cf9408c4203dd606ef99 (patch)
tree64fbc526816b52444d5b40176790dc2880203630 /cmd
parentf15ecf8b48dc39b2ab4850aa37acbfe7d8e4ea58 (diff)
bugfix: fix a panic when delete neighborset (all) by name directly
Diffstat (limited to 'cmd')
-rw-r--r--cmd/gobgp/policy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/gobgp/policy.go b/cmd/gobgp/policy.go
index 6408248f..710fdb38 100644
--- a/cmd/gobgp/policy.go
+++ b/cmd/gobgp/policy.go
@@ -323,7 +323,7 @@ func parseNeighborSet(args []string) (*api.DefinedSet, error) {
}
name := args[0]
args = args[1:]
- list := make([]string, 0, len(args[1:]))
+ list := make([]string, 0, len(args))
for _, arg := range args {
address := net.ParseIP(arg)
if address.To4() != nil {