Skip to content
Snippets Groups Projects
Commit 59dcc19e authored by Morris Jette's avatar Morris Jette
Browse files

Fix for NULL AuthInfo

parent 79d91f1c
No related branches found
No related tags found
No related merge requests found
...@@ -1441,6 +1441,9 @@ extern int slurm_get_auth_ttl(void) ...@@ -1441,6 +1441,9 @@ extern int slurm_get_auth_ttl(void)
return ttl; return ttl;
auth_info = slurm_get_auth_info(); auth_info = slurm_get_auth_info();
if (!auth_info)
return 0;
tmp = strstr(auth_info, "ttl="); tmp = strstr(auth_info, "ttl=");
if (tmp) { if (tmp) {
ttl = atoi(tmp + 4); ttl = atoi(tmp + 4);
......
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