From: Maria Matejka Date: Tue, 25 Jun 2024 14:45:15 +0000 (+0200) Subject: fixup! Additional CLI sockets may now be restricted X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37d425d87a60eb34fb207d0eaddab320350de8bc;p=thirdparty%2Fbird.git fixup! Additional CLI sockets may now be restricted --- diff --git a/nest/cli.c b/nest/cli.c index eed99414f..4601f8633 100644 --- a/nest/cli.c +++ b/nest/cli.c @@ -322,8 +322,6 @@ cli_new(void *priv, struct cli_config *cf) c->show_pool = lp_new_default(c->pool); c->rx_buf = mb_alloc(c->pool, CLI_RX_BUF_SIZE); - c->config = cf; - config_add_obstacle(cf->config); if (cf->restricted) c->restricted = 1; @@ -419,7 +417,6 @@ cli_free(cli *c) c->cleanup(c); if (c == cmd_reconfig_stored_cli) cmd_reconfig_stored_cli = NULL; - config_del_obstacle(c->config->config); rfree(c->pool); } diff --git a/nest/cli.h b/nest/cli.h index f3c431671..afcb6d552 100644 --- a/nest/cli.h +++ b/nest/cli.h @@ -29,7 +29,6 @@ struct cli_out { typedef struct cli { node n; /* Node in list of all log hooks */ - struct cli_config *config; /* Configuration of the appropriate cli */ pool *pool; void *priv; /* Private to sysdep layer */ byte *rx_buf, *rx_pos; /* sysdep */