Skip to content
Snippets Groups Projects
Commit 625d0c78 authored by Danny Auble's avatar Danny Auble
Browse files

Make sure errno is SLURM_SUCCESS on successful exit

parent cc36eb3a
No related branches found
No related tags found
No related merge requests found
......@@ -2148,7 +2148,8 @@ extern void *acct_storage_p_get_connection(const slurm_trigger_callbacks_t *cb,
error("couldn't set sql_mode");
acct_storage_p_close_connection(&mysql_conn);
errno = rc;
}
} else
errno = SLURM_SUCCESS;
}
return (void *)mysql_conn;
......
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