diff options
| author | Christian Hopps <chopps@labn.net> | 2023-11-11 19:21:17 +0100 | 
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2023-11-11 19:25:03 +0100 | 
| commit | 59beac5013f48889d8b73bb57df085d8d3e7a09f (patch) | |
| tree | 799ce3a01f6417db5d7538e615a5e72fd3761185 /lib/mgmt_fe_client.c | |
| parent | 19bcca4f2e9a3ee3c8cc16608dcf303241bbf014 (diff) | |
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.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mgmt_fe_client.c b/lib/mgmt_fe_client.c index 7e42e1c09e..aab553049d 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,  };  | 
