From 37d425d87a60eb34fb207d0eaddab320350de8bc Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Tue, 25 Jun 2024 16:45:15 +0200 Subject: [PATCH] fixup! Additional CLI sockets may now be restricted --- nest/cli.c | 3 --- nest/cli.h | 1 - 2 files changed, 4 deletions(-) diff --git a/nest/cli.c b/nest/cli.c index eed99414..4601f863 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 f3c43167..afcb6d55 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 */