summaryrefslogtreecommitdiffstats
path: root/lib/mgmt_fe_client.c
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2023-11-11 19:21:17 +0100
committerChristian Hopps <chopps@labn.net>2023-11-11 19:25:03 +0100
commit59beac5013f48889d8b73bb57df085d8d3e7a09f (patch)
tree799ce3a01f6417db5d7538e615a5e72fd3761185 /lib/mgmt_fe_client.c
parentMerge pull request #14758 from LabNConsulting/fix-mgmtd-coverity (diff)
downloadfrr-59beac5013f48889d8b73bb57df085d8d3e7a09f.tar.xz
frr-59beac5013f48889d8b73bb57df085d8d3e7a09f.zip
lib: mgmtd: fix debug cli commands and memleaks
- Cannot have 2 cmd_node's with same .node number. Install the mgmtd client library debug nodes (client frontend and client backend) using new unique node numbers. Fixes memleaks. - Fix "debug mgmt client backend" to generate correct config (and not for frontend). Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/mgmt_fe_client.c')
-rw-r--r--lib/mgmt_fe_client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mgmt_fe_client.c b/lib/mgmt_fe_client.c
index 7e42e1c09..aab553049 100644
--- a/lib/mgmt_fe_client.c
+++ b/lib/mgmt_fe_client.c
@@ -580,8 +580,8 @@ static struct debug_callbacks mgmt_dbg_fe_client_cbs = {
.debug_set_all = mgmt_debug_client_fe_set_all};
static struct cmd_node mgmt_dbg_node = {
- .name = "mgmt client frontend",
- .node = DEBUG_NODE,
+ .name = "debug mgmt client frontend",
+ .node = MGMT_FE_DEBUG_NODE,
.prompt = "",
.config_write = mgmt_debug_fe_client_config_write,
};