summaryrefslogtreecommitdiff
path: root/proto
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2018-10-01 15:35:43 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2018-10-01 15:35:43 +0200
commit0db7a1d69c80b1089f10a268ceacb059db41ced8 (patch)
tree3075704512facf0978e5b827ca5736722705a6b2 /proto
parentd4cebc6bbe2a55bd344383fcc27255a12d686195 (diff)
BGP: Fix bug in show protocol related to LLGR
When channel is not active due to not be negotiated during sessino establishment, the LLGR timer is not allocated, so we should not show it.
Diffstat (limited to 'proto')
-rw-r--r--proto/bgp/bgp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/bgp/bgp.c b/proto/bgp/bgp.c
index 6dea88c8..d2abcc5b 100644
--- a/proto/bgp/bgp.c
+++ b/proto/bgp/bgp.c
@@ -2255,7 +2255,7 @@ bgp_show_proto_info(struct proto *P)
if (p->gr_active_num)
cli_msg(-1006, " Neighbor GR: %s", bgp_gr_states[c->gr_active]);
- if (tm_active(c->stale_timer))
+ if (c->stale_timer && tm_active(c->stale_timer))
cli_msg(-1006, " LL stale timer: %t/-", tm_remains(c->stale_timer));
if (c->c.channel_state == CS_UP)