Skip to content

Commit 47c435e

Browse files
rwespetalhppritcha
authored andcommitted
mtl/ofi: ignore case when comparing provider names
Change the provider include and exclude list name comparison check to ignore case. The UDP provider's name is uppercase and was being selected despite being in the exclude list. Signed-off-by: Robert Wespetal <[email protected]> (cherry picked from commit 9b72e94)
1 parent 6a739f8 commit 47c435e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/mca/mtl/ofi/mtl_ofi_component.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ is_in_list(char **list, char *item)
293293
}
294294

295295
while (NULL != list[i]) {
296-
if (0 == strncmp(item, list[i], strlen(list[i]))) {
296+
if (0 == strncasecmp(item, list[i], strlen(list[i]))) {
297297
return 1;
298298
} else {
299299
i++;

0 commit comments

Comments
 (0)