diff options
-rw-r--r-- | bgpd/bgp_vty.c | 2 | ||||
-rw-r--r-- | lib/qtimers.c | 3 |
2 files changed, 3 insertions, 2 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); diff --git a/lib/qtimers.c b/lib/qtimers.c index a5d0e27b..6c6c1406 100644 --- a/lib/qtimers.c +++ b/lib/qtimers.c @@ -333,7 +333,6 @@ qtimer_set(qtimer qtr, qtime_mono_t when, qtimer_action* action) heap_push_item(&qtp->timers, qtr) ; /* add to heap */ assert(qtp == qtr->pile); - qtimer_pile_verify(qtp) ; /* TODO: remove after debuggery */ qtr->state = qtr_state_active ; /* overrides any unset pending */ @@ -341,6 +340,8 @@ qtimer_set(qtimer qtr, qtime_mono_t when, qtimer_action* action) qtr->action = action ; else dassert(qtr->action != NULL) ; + + qtimer_pile_verify(qtp) ; /* TODO: remove after debuggery */ } ; /* Unset given timer |