]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
MRT: Fix bug in MRT table dump requested from CLI
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Tue, 20 Nov 2018 16:40:12 +0000 (17:40 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Tue, 20 Nov 2018 16:40:47 +0000 (17:40 +0100)
proto/mrt/mrt.c

index 5c457b6c045c7307047a4a9b42ca15356427d237..3e61a621a236d09f784df92ba5b34fa8d21c051c 100644 (file)
@@ -668,7 +668,8 @@ mrt_dump_cont(struct cli *c)
     return;
 
   cli_printf(c, 0, "");
-  c->cont = c->cleanup = NULL;
+  mrt_table_dump_free(c->rover);
+  c->cont = c->cleanup = c->rover = NULL;
 }
 
 static void