]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
BGP: Fix bug in show protocol related to LLGR
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Mon, 1 Oct 2018 13:35:43 +0000 (15:35 +0200)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Mon, 1 Oct 2018 13:35:43 +0000 (15:35 +0200)
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.

proto/bgp/bgp.c

index 6dea88c89be873d16e80cf5f1d7c7e4ed9e90291..d2abcc5b2ae1e7c9a8c1b7d9224684f1cf5f2c9f 100644 (file)
@@ -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)