From: Maria Matejka Date: Mon, 22 Sep 2025 09:17:34 +0000 (+0200) Subject: Pipe: Do not show statistics for a stopping pipe X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fmq-stable-v3.0;p=thirdparty%2Fbird.git Pipe: Do not show statistics for a stopping pipe There is no guarantee of such statistics to exist. Reported-By: NIX-CZ --- diff --git a/proto/pipe/pipe.c b/proto/pipe/pipe.c index 0420ca140..562f4b3e7 100644 --- a/proto/pipe/pipe.c +++ b/proto/pipe/pipe.c @@ -286,7 +286,7 @@ pipe_show_proto_info(struct proto *P) channel_show_limit(&p->sec->in_limit, "Export limit:", (p->sec->limit_active & (1 << PLD_IN)), p->sec->limit_actions[PLD_IN]); - if (P->proto_state != PS_DOWN_XX) + if ((P->proto_state != PS_DOWN_XX) && (P->proto_state != PS_STOP)) pipe_show_stats(p); }