]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
fixup! Additional CLI sockets may now be restricted mq-additional-cli
authorMaria Matejka <mq@ucw.cz>
Tue, 25 Jun 2024 14:45:15 +0000 (16:45 +0200)
committerMaria Matejka <mq@ucw.cz>
Tue, 25 Jun 2024 14:45:15 +0000 (16:45 +0200)
nest/cli.c
nest/cli.h

index eed99414f8e826359f5d8c7734e084538ef3d5a9..4601f86334fefcc9236efc416eb6453351ced53b 100644 (file)
@@ -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);
 }
 
index f3c43167180e1c7671db5ac0fb383a0bb39563f8..afcb6d552242efaf365359daea38068f07aecd91 100644 (file)
@@ -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 */