Skip to content

Commit 8e583dc

Browse files
author
Ralph Castain
authored
Merge pull request #3601 from rhc54/topic/fix
Protect against the condition where the port string is actually NULL
2 parents 89bbb5f + ed4078e commit 8e583dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/mca/rte/orte/rte_orte_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ bool ompi_rte_connect_accept_support(const char *port)
208208
/* were we launched by mpirun, or are we calling
209209
* without a defined port? */
210210
if (NULL == orte_process_info.my_hnp_uri ||
211-
0 == strlen(port)) {
211+
NULL == port || 0 == strlen(port)) {
212212
return true;
213213
}
214214

0 commit comments

Comments
 (0)