Skip to content

Commit

Permalink
bugfix: fix a panic when delete neighborset (all) by name directly
Browse files Browse the repository at this point in the history
  • Loading branch information
imcom committed Sep 25, 2020
1 parent f15ecf8 commit 1ee998c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/gobgp/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1ee998c

Please sign in to comment.