mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[coverity] 1543077 Dereference null return value
This commit is contained in:
@@ -2777,6 +2777,9 @@ static LONG WINAPI PCSC_SCardReadCacheA(SCARDCONTEXT hContext, UUID* CardIdentif
|
||||
{
|
||||
PCSC_CACHE_ITEM* data = NULL;
|
||||
PCSC_SCARDCONTEXT* ctx = PCSC_GetCardContextData(hContext);
|
||||
if (!ctx)
|
||||
return SCARD_E_INVALID_HANDLE;
|
||||
|
||||
char* id = card_id_and_name_a(CardIdentifier, LookupName);
|
||||
|
||||
data = HashTable_GetItemValue(ctx->cache, id);
|
||||
|
||||
Reference in New Issue
Block a user