CryptDeriveKey - set return key handle to NULL in case of failure.
This commit is contained in:
parent
64c63dd4b8
commit
09a81f8c3f
|
@ -756,6 +756,7 @@ BOOL WINAPI CryptDeriveKey (HCRYPTPROV hProv, ALG_ID Algid, HCRYPTHASH hBaseData
|
||||||
|
|
||||||
/* CSP error! */
|
/* CSP error! */
|
||||||
CRYPT_Free(key);
|
CRYPT_Free(key);
|
||||||
|
*phKey = 0;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue