diff options
author | Alon Levy <alevy@redhat.com> | 2010-11-30 10:42:53 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2010-12-09 13:36:19 +0200 |
commit | bda3dc4aabcbb64d552dd0d3030cfbe93529a576 (patch) | |
tree | 8195f110bd2921844906d06dc8f95882d3cd06ad | |
parent | 5ef30c3ce7216945c6116b1e9c059dcb64ca9bc3 (diff) |
libcaccard: undo wrong fix to passthru_get_reader_state
-rw-r--r-- | passthru.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -332,6 +332,10 @@ passthru_get_reader_state(SCARD_READERSTATE_A *reader_states, int i; for (i=0; i < reader_count; i++) { + if (name == NULL && reader_states[i].szReader == NULL) { + // looking for a blank slot to return + return &reader_states[i]; + } if (name == NULL || reader_states[i].szReader == NULL) { continue; } |