Skip to content

Commit ed4078e

Browse files
author
Ralph Castain
committed
Protect against the condition where the port string is actually NULL
Signed-off-by: Ralph Castain <[email protected]>
1 parent 89bbb5f commit ed4078e

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)