0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

fixup! Additional CLI sockets may now be restricted

This commit is contained in:
Maria Matejka 2024-06-25 16:45:15 +02:00
parent 064ac4dbb4
commit 37d425d87a
2 changed files with 0 additions and 4 deletions

View File

@ -322,8 +322,6 @@ cli_new(void *priv, struct cli_config *cf)
c->show_pool = lp_new_default(c->pool); c->show_pool = lp_new_default(c->pool);
c->rx_buf = mb_alloc(c->pool, CLI_RX_BUF_SIZE); c->rx_buf = mb_alloc(c->pool, CLI_RX_BUF_SIZE);
c->config = cf;
config_add_obstacle(cf->config);
if (cf->restricted) if (cf->restricted)
c->restricted = 1; c->restricted = 1;
@ -419,7 +417,6 @@ cli_free(cli *c)
c->cleanup(c); c->cleanup(c);
if (c == cmd_reconfig_stored_cli) if (c == cmd_reconfig_stored_cli)
cmd_reconfig_stored_cli = NULL; cmd_reconfig_stored_cli = NULL;
config_del_obstacle(c->config->config);
rfree(c->pool); rfree(c->pool);
} }

View File

@ -29,7 +29,6 @@ struct cli_out {
typedef struct cli { typedef struct cli {
node n; /* Node in list of all log hooks */ node n; /* Node in list of all log hooks */
struct cli_config *config; /* Configuration of the appropriate cli */
pool *pool; pool *pool;
void *priv; /* Private to sysdep layer */ void *priv; /* Private to sysdep layer */
byte *rx_buf, *rx_pos; /* sysdep */ byte *rx_buf, *rx_pos; /* sysdep */