summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-12-01 16:07:56 +0100
committerMartin Mares <mj@ucw.cz>1999-12-01 16:07:56 +0100
commitf611f0ee824a6b363dc675e8f6ac963f20e7d007 (patch)
tree467918690dac758df7627d82e9141e291736f285
parent2ad6dcdb2c949904643eabbbf6d0029045e8ea45 (diff)
downloadbird-f611f0ee824a6b363dc675e8f6ac963f20e7d007.tar
bird-f611f0ee824a6b363dc675e8f6ac963f20e7d007.zip
Reset temporary parser data before parsing, not afterwards. This enables
deferred CLI command handlers to store their temporary data in the CLI parsing pool.
-rw-r--r--nest/cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nest/cli.c b/nest/cli.c
index 88fb78d..addbd1e 100644
--- a/nest/cli.c
+++ b/nest/cli.c
@@ -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);
}