diff options
author | wanghonghao <wanghonghao@bytedance.com> | 2018-09-19 11:58:21 +0800 |
---|---|---|
committer | wanghonghao <wanghonghao@bytedance.com> | 2018-09-19 12:01:18 +0800 |
commit | 94e70ba60afa615e0e0c031427e13ca7c34a1760 (patch) | |
tree | c8478543a6e389cfa63e928c2ca11f379c7dfbd7 /cmd | |
parent | 98d4679e316431fae6ba429e21278049a65f969a (diff) |
cli: fix nil pointer in showNeighbor
Diffstat (limited to 'cmd')
-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 |