]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Pipe: Do not show statistics for a stopping pipe mq-stable-v3.0
authorMaria Matejka <mq@ucw.cz>
Mon, 22 Sep 2025 09:17:34 +0000 (11:17 +0200)
committerMaria Matejka <mq@ucw.cz>
Mon, 22 Sep 2025 11:35:02 +0000 (13:35 +0200)
There is no guarantee of such statistics to exist.

Reported-By: NIX-CZ
proto/pipe/pipe.c

index 0420ca14010d9a84ae695470f3c3a086fe6e7987..562f4b3e7b36170b472e04856434cb3843cafe95 100644 (file)
@@ -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);
 }