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
commit 59ae00baaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: