]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
MRT: Fix typo in assert
authorKaterina Kubecova <katerina.kubecova@nic.cz>
Tue, 13 May 2025 08:43:17 +0000 (10:43 +0200)
committerMaria Matejka <mq@ucw.cz>
Sun, 25 May 2025 19:02:51 +0000 (21:02 +0200)
In mrt_cli_dump_done, BIRD 3 always crashed because the assert could
never be true by a typo.

proto/mrt/mrt.c

index 015a1e15bdca7b831764a806381bd0ea15090ec1..7a8d9d586b098bb8064db7752c2d8676e10b6b0f 100644 (file)
@@ -745,7 +745,7 @@ static void
 mrt_cli_dump_done(struct mrt_table_dump_state *s)
 {
   struct cli *c = s->cli;
-  ASSERT_DIE(c->rover == c);
+  ASSERT_DIE(c->rover == s);
 
   cli_printf(c, 0, "");
   mrt_table_dump_free(s);