diff options
-rw-r--r-- | cmd/gobgp/cmd/neighbor.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/gobgp/cmd/neighbor.go b/cmd/gobgp/cmd/neighbor.go index 651fa7c9..e6126c51 100644 --- a/cmd/gobgp/cmd/neighbor.go +++ b/cmd/gobgp/cmd/neighbor.go @@ -449,7 +449,7 @@ func showNeighbor(args []string) error { first := true for _, a := range p.AfiSafis { limit := a.PrefixLimits - if limit.MaxPrefixes > 0 { + if limit != nil && limit.MaxPrefixes > 0 { if first { fmt.Println(" Prefix Limits:") first = false |