diff options
Diffstat (limited to 'bgpd/bgp_vty.c')
-rw-r--r-- | bgpd/bgp_vty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index dfd9c316..c679d93d 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -7610,7 +7610,7 @@ bgp_show_peer (struct vty *vty, struct peer *p) p->t_write ? "on" : "off", VTY_NEWLINE); - if (p->notify->code == BGP_NOTIFY_OPEN_ERR + if (p->notify != NULL && p->notify->code == BGP_NOTIFY_OPEN_ERR && p->notify->subcode == BGP_NOTIFY_OPEN_UNSUP_CAPBL) bgp_capability_vty_out (vty, p); |