Skip to content

Commit fb51d65

Browse files
author
Ralph Castain
committed
Minor change: check for NULL before using the job map to avoid segfault when erroring out prior to creating the map
1 parent 9c496f7 commit fb51d65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

orte/mca/grpcomm/base/grpcomm_base_stubs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ static int create_dmns(orte_grpcomm_signature_t *sig,
324324
*dmns = NULL;
325325
return ORTE_ERR_NOT_FOUND;
326326
}
327-
if (0 == jdata->map->num_nodes) {
327+
if (NULL == jdata->map || 0 == jdata->map->num_nodes) {
328328
/* we haven't generated a job map yet - if we are the HNP,
329329
* then we should only involve ourselves. Otherwise, we have
330330
* no choice but to abort to avoid hangs */

0 commit comments

Comments
 (0)