Reset temporary parser data before parsing, not afterwards. This enables
deferred CLI command handlers to store their temporary data in the CLI parsing pool.
This commit is contained in:
parent
2ad6dcdb2c
commit
f611f0ee82
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue