]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Reset temporary parser data before parsing, not afterwards. This enables
authorMartin Mares <mj@ucw.cz>
Wed, 1 Dec 1999 15:07:56 +0000 (15:07 +0000)
committerMartin Mares <mj@ucw.cz>
Wed, 1 Dec 1999 15:07:56 +0000 (15:07 +0000)
deferred CLI command handlers to store their temporary data in the CLI
parsing pool.

nest/cli.c

index 88fb78d9ee66f17f826ea45578b759da0638d266..addbd1ea3b30d462989df0ba459b5e85f296dbba 100644 (file)
@@ -128,8 +128,8 @@ cli_command(struct cli *c)
   cli_rh_len = strlen(c->rx_buf);
   cli_rh_trick_flag = 0;
   this_cli = c;
-  res = cli_parse(&f);
   lp_flush(c->parser_pool);
+  res = cli_parse(&f);
   if (!res)
     cli_printf(c, 9001, f.err_msg);
 }