Merge pull request #4867 from akallabeth/empty_smartcard_filter_fix

Fixed smartcard filter for empty arguments.
This commit is contained in:
Martin Fleisz
2018-09-19 13:45:15 +02:00
committed by GitHub

View File

@@ -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: