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

Correct job_cnt_run NULL pointer

This corrects logic from commit e5a61746
that could result in use of NULL pointer
parent f76586bf
No related branches found
No related tags found
No related merge requests found
...@@ -1957,7 +1957,8 @@ static int _sync_nodes_to_active_job(struct job_record *job_ptr) ...@@ -1957,7 +1957,8 @@ static int _sync_nodes_to_active_job(struct job_record *job_ptr)
} }
} }
if (IS_JOB_RUNNING(job_ptr) || IS_JOB_SUSPENDED(job_ptr)) if ((IS_JOB_RUNNING(job_ptr) || IS_JOB_SUSPENDED(job_ptr)) &&
(job_ptr->front_end_ptr != NULL))
job_ptr->front_end_ptr->job_cnt_run++; job_ptr->front_end_ptr->job_cnt_run++;
return cnt; return cnt;
......
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