From f63286dbea93d2af6721db590ab487f2c341801b Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Wed, 19 Sep 2018 11:13:02 +0200 Subject: [PATCH] Fixed smartcard filter for empty arguments. --- channels/smartcard/client/smartcard_main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/channels/smartcard/client/smartcard_main.c b/channels/smartcard/client/smartcard_main.c index 04dcb90ab..134c021f8 100644 --- a/channels/smartcard/client/smartcard_main.c +++ b/channels/smartcard/client/smartcard_main.c @@ -811,7 +811,9 @@ UINT DeviceServiceEntry(PDEVICE_SERVICE_ENTRY_POINTS pEntryPoints) else smartcard = sSmartcard; - LinkedList_AddLast(smartcard->names, pEntryPoints->device->Name); + if (pEntryPoints->device->Name) + LinkedList_AddLast(smartcard->names, pEntryPoints->device->Name); + sSmartcard = smartcard; return CHANNEL_RC_OK; fail: