Changeset View
Changeset View
Standalone View
Standalone View
scd/apdu.c
Show First 20 Lines • Show All 2,261 Lines • ▼ Show 20 Lines | #endif | ||||
if (slot == MAX_READER) | if (slot == MAX_READER) | ||||
{ /* Found a new device. */ | { /* Found a new device. */ | ||||
if (DBG_READER) | if (DBG_READER) | ||||
log_debug ("apdu_open_reader: new device=%s\n", rdrname); | log_debug ("apdu_open_reader: new device=%s\n", rdrname); | ||||
/* When reader string is specified, check if it is the one. */ | /* When reader string is specified, check if it is the one. */ | ||||
if (readerno < 0 | if (readerno < 0 | ||||
&& strncmp (rdrname, dl->portstr, strlen (dl->portstr)) != 0) | && strncmp (rdrname, dl->portstr, strlen (dl->portstr)) != 0) | ||||
{ | |||||
dl->idx++; | |||||
continue; | continue; | ||||
} | |||||
slot = open_pcsc_reader (rdrname); | slot = open_pcsc_reader (rdrname); | ||||
dl->idx++; | dl->idx++; | ||||
if (slot >= 0) | if (slot >= 0) | ||||
{ | { | ||||
npth_mutex_unlock (&reader_table_lock); | npth_mutex_unlock (&reader_table_lock); | ||||
return slot; | return slot; | ||||
▲ Show 20 Lines • Show All 1,232 Lines • Show Last 20 Lines |