Skip to content

Commit 955fa04

Browse files
author
Ralph Castain
authored
Merge pull request #3161 from rhc54/topic/cov2
Silence Coverity warnings
2 parents 330b11c + 52c9e63 commit 955fa04

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

orte/mca/plm/rsh/plm_rsh_module.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,8 @@ static void launch_daemons(int fd, short args, void *cbdata)
11061106
true, mca_plm_rsh_component.num_concurrent, map->num_new_daemons);
11071107
ORTE_ERROR_LOG(ORTE_ERR_FATAL);
11081108
OBJ_RELEASE(state);
1109-
return;
1109+
rc = ORTE_ERR_SILENT;
1110+
goto cleanup;
11101111
}
11111112

11121113
/*
@@ -1151,6 +1152,13 @@ static void launch_daemons(int fd, short args, void *cbdata)
11511152
}
11521153
}
11531154
}
1155+
if (NULL == node) {
1156+
/* this should be impossible, but adding the check will
1157+
* silence code checkers that don't know better */
1158+
ORTE_ERROR_LOG(ORTE_ERR_NOT_FOUND);
1159+
rc = ORTE_ERR_NOT_FOUND;
1160+
goto cleanup;
1161+
}
11541162

11551163
/* if we are tree launching, find our children and create the launch cmd */
11561164
if (!mca_plm_rsh_component.no_tree_spawn) {

0 commit comments

Comments
 (0)