mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-18 17:18:42 +00:00
CLI: Fix bug in symbol handling introduced in previous patches
This commit is contained in:
parent
4fec43067e
commit
33f7fbc42d
@ -261,6 +261,7 @@ cli_command(struct cli *c)
|
|||||||
log(L_TRACE "CLI: %s", c->rx_buf);
|
log(L_TRACE "CLI: %s", c->rx_buf);
|
||||||
bzero(&f, sizeof(f));
|
bzero(&f, sizeof(f));
|
||||||
f.mem = c->parser_pool;
|
f.mem = c->parser_pool;
|
||||||
|
f.pool = rp_new(c->pool, "Config");
|
||||||
cf_read_hook = cli_cmd_read_hook;
|
cf_read_hook = cli_cmd_read_hook;
|
||||||
cli_rh_pos = c->rx_buf;
|
cli_rh_pos = c->rx_buf;
|
||||||
cli_rh_len = strlen(c->rx_buf);
|
cli_rh_len = strlen(c->rx_buf);
|
||||||
@ -270,6 +271,8 @@ cli_command(struct cli *c)
|
|||||||
res = cli_parse(&f);
|
res = cli_parse(&f);
|
||||||
if (!res)
|
if (!res)
|
||||||
cli_printf(c, 9001, f.err_msg);
|
cli_printf(c, 9001, f.err_msg);
|
||||||
|
|
||||||
|
config_free(&f);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user