]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Pipe: Do not show statistics for a stopping pipe
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 12:49:41 +0000 (14:49 +0200)
There is no guarantee of such statistics to exist.

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

index 0420ca14010d9a84ae695470f3c3a086fe6e7987..d6b5208f2fdcc1f9418c3e6b81ae78d06e601ac4 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_UP)
     pipe_show_stats(p);
 }