Skip to content
Snippets Groups Projects
Commit b813c4ee authored by Moe Jette's avatar Moe Jette
Browse files

Fix bug that would cause scontrol reconfig on real cluster to corrupt memory.

parent 1aa22f23
No related branches found
No related tags found
No related merge requests found
...@@ -1653,9 +1653,9 @@ void msg_to_slurmd (slurm_msg_type_t msg_type) ...@@ -1653,9 +1653,9 @@ void msg_to_slurmd (slurm_msg_type_t msg_type)
kill_agent_args->retry = 0; kill_agent_args->retry = 0;
kill_agent_args->slurm_addr = xmalloc ( kill_agent_args->slurm_addr = xmalloc (
sizeof (struct sockaddr_in) * sizeof (struct sockaddr_in) *
(kill_agent_args->node_count + 1)); (node_record_count + 1));
kill_agent_args->node_names = xmalloc (MAX_NAME_LEN * kill_agent_args->node_names = xmalloc (MAX_NAME_LEN *
(kill_agent_args->node_count + 1)); (node_record_count + 1));
if (msg_type == REQUEST_SHUTDOWN) { if (msg_type == REQUEST_SHUTDOWN) {
shutdown_req = xmalloc(sizeof(shutdown_msg_t)); shutdown_req = xmalloc(sizeof(shutdown_msg_t));
shutdown_req->core = 0; shutdown_req->core = 0;
......
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