Skip to content
Snippets Groups Projects
Commit 33f7fbc4 authored by Ondřej Zajíček's avatar Ondřej Zajíček
Browse files

CLI: Fix bug in symbol handling introduced in previous patches

parent 4fec4306
No related branches found
No related tags found
No related merge requests found
......@@ -261,6 +261,7 @@ cli_command(struct cli *c)
log(L_TRACE "CLI: %s", c->rx_buf);
bzero(&f, sizeof(f));
f.mem = c->parser_pool;
f.pool = rp_new(c->pool, "Config");
cf_read_hook = cli_cmd_read_hook;
cli_rh_pos = c->rx_buf;
cli_rh_len = strlen(c->rx_buf);
......@@ -270,6 +271,8 @@ cli_command(struct cli *c)
res = cli_parse(&f);
if (!res)
cli_printf(c, 9001, f.err_msg);
config_free(&f);
}
static void
......
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