Skip to content

Commit b11dc8c

Browse files
authored
Merge pull request #267 from igaw/traddr-case-insesitive
tree: Ignore traddr case in nvme_lookup_ctrl()
2 parents 9fa083a + 1d88065 commit b11dc8c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/nvme/tree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ nvme_ctrl_t nvme_lookup_ctrl(nvme_subsystem_t s, const char *transport,
10291029
if (strcmp(c->transport, transport))
10301030
continue;
10311031
if (traddr && c->traddr &&
1032-
strcmp(c->traddr, traddr))
1032+
strcasecmp(c->traddr, traddr))
10331033
continue;
10341034
if (host_traddr && c->cfg.host_traddr &&
10351035
strcmp(c->cfg.host_traddr, host_traddr))

0 commit comments

Comments
 (0)