mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-08 12:18:42 +00:00
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
@ -128,8 +128,8 @@ cli_command(struct cli *c)
|
|||||||
cli_rh_len = strlen(c->rx_buf);
|
cli_rh_len = strlen(c->rx_buf);
|
||||||
cli_rh_trick_flag = 0;
|
cli_rh_trick_flag = 0;
|
||||||
this_cli = c;
|
this_cli = c;
|
||||||
res = cli_parse(&f);
|
|
||||||
lp_flush(c->parser_pool);
|
lp_flush(c->parser_pool);
|
||||||
|
res = cli_parse(&f);
|
||||||
if (!res)
|
if (!res)
|
||||||
cli_printf(c, 9001, f.err_msg);
|
cli_printf(c, 9001, f.err_msg);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user