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

Fix for using AuthInfo as munge socket name for extenal communications

parent 7a07f8e2
No related branches found
No related tags found
No related merge requests found
......@@ -647,11 +647,11 @@ static char *_global_auth_key(void)
return storage_pass;
if(slurmdbd_conf) {
if(slurmdbd_conf->storage_pass) {
if(strlen(slurmdbd_conf->storage_pass) >
if(slurmdbd_conf->auth_info) {
if(strlen(slurmdbd_conf->auth_info) >
sizeof(storage_pass))
fatal("StoragePass is too long");
strncpy(storage_pass, slurmdbd_conf->storage_pass,
fatal("AuthInfo is too long");
strncpy(storage_pass, slurmdbd_conf->auth_info,
sizeof(storage_pass));
}
} else {
......
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