From: Maria Matejka Date: Tue, 25 Jun 2024 13:05:26 +0000 (+0200) Subject: BGP: show proto info crash fix if BGP is down X-Git-Tag: v3.0.0~114 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b7fd453d4e339de1dfe1726177f9fb7afa3d90c;p=thirdparty%2Fbird.git BGP: show proto info crash fix if BGP is down --- diff --git a/proto/bgp/bgp.c b/proto/bgp/bgp.c index 3d31b1884..b0ec980d3 100644 --- a/proto/bgp/bgp.c +++ b/proto/bgp/bgp.c @@ -2855,6 +2855,9 @@ bgp_show_proto_info(struct proto *P) if (c->base_table) cli_msg(-1006, " Base table: %s", c->base_table->name); + if (!c->tx) + continue; + BGP_PTX_LOCK(c->tx, tx); uint bucket_cnt = 0;