Skip to content
Snippets Groups Projects
Commit f611f0ee authored by Martin Mareš's avatar Martin Mareš
Browse files

Reset temporary parser data before parsing, not afterwards. This enables

deferred CLI command handlers to store their temporary data in the CLI
parsing pool.
parent 2ad6dcdb
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment