Skip to content
Snippets Groups Projects
Commit cc49ff74 authored by burneykb's avatar burneykb
Browse files

solved memory issue in cli_addnode

parent f202da83
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,7 @@ int cli_addnode(struct backend_conn * conn, int argc, char ** argv) {
return 1;
}
if ((node_data.name = (char *)malloc((*node_data.name) * strlen(argv[2]))) == NULL) {
if ((node_data.name = (char *)malloc(strlen(argv[2]))) == NULL) {
return 1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment