From f611f0ee824a6b363dc675e8f6ac963f20e7d007 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 1 Dec 1999 15:07:56 +0000 Subject: Reset temporary parser data before parsing, not afterwards. This enables deferred CLI command handlers to store their temporary data in the CLI parsing pool. --- nest/cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3