summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_vty.c
diff options
context:
space:
mode:
authorpaulo <paul@bayleaf.org.uk>2010-02-01 17:19:12 +0000
committerpaulo <paul@bayleaf.org.uk>2010-02-01 17:19:12 +0000
commitb5be77ccc56a4345fd18c97f2daa7cf4342a2438 (patch)
tree12226fed6fea36de8c6d484439960c919c4642d1 /bgpd/bgp_vty.c
parent6e75be0d8cb3810692b78292f827b58f69a4c67c (diff)
downloadquagga-b5be77ccc56a4345fd18c97f2daa7cf4342a2438.tar.bz2
quagga-b5be77ccc56a4345fd18c97f2daa7cf4342a2438.tar.xz
Use session->notification instead of peer's. Fix HUP - race condition.
Diffstat (limited to 'bgpd/bgp_vty.c')
-rw-r--r--bgpd/bgp_vty.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index f0462236..5452640b 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -7622,8 +7622,9 @@ bgp_show_peer (struct vty *vty, struct peer *p)
VTY_NEWLINE);
#endif
- if (p->notify != NULL && p->notify->code == BGP_NOTIFY_OPEN_ERR
- && p->notify->subcode == BGP_NOTIFY_OPEN_UNSUP_CAPBL)
+ if (p->session != NULL && p->session->notification != NULL
+ && p->session->notification->code == BGP_NOTIFY_OPEN_ERR
+ && p->session->notification->subcode == BGP_NOTIFY_OPEN_UNSUP_CAPBL)
bgp_capability_vty_out (vty, p);
vty_out (vty, "%s", VTY_NEWLINE);