From 6b66aa71fb3cd3efbd5b8066eca48ccb713ed568 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Tue, 14 Apr 2020 18:58:55 +0200 Subject: [PATCH] Fixi #6086: smartcard filter early abort. Do not abort before incrementing read position. --- channels/smartcard/client/smartcard_operations.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/channels/smartcard/client/smartcard_operations.c b/channels/smartcard/client/smartcard_operations.c index e99d27bf4..ef03d7ac4 100644 --- a/channels/smartcard/client/smartcard_operations.c +++ b/channels/smartcard/client/smartcard_operations.c @@ -457,9 +457,6 @@ static DWORD filter_device_by_name_a(wLinkedList* list, LPSTR* mszReaders, DWORD LPSTR wreader = &(*mszReaders)[wpos]; size_t readerLen = strnlen(rreader, cchReaders - rpos); - if (readerLen == 0) - break; - rpos += readerLen + 1; if (filter_match(list, rreader, readerLen))