Skip to content

Commit ca88fcd

Browse files
authored
Fix condition to check part_name in reader
1 parent cc60e61 commit ca88fcd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

driver/apdu/pcsc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ static int pcsc_open_hCard_iter(struct pcsc_userdata *userdata, const int index,
118118
const int id = getenv_or_default(ENV_DRV_IFID, (int)-1);
119119
if (id != -1 && id != index) {
120120
const char *part_name = getenv(ENV_DRV_NAME);
121-
if (part_name != NULL && strstr(reader, part_name) == NULL) {
121+
if (part_name != NULL && strstr(reader, part_name) != NULL) {
122+
// pass
123+
} else {
122124
return 0;
123125
}
124126
}

0 commit comments

Comments
 (0)