Commit 09a81f8c authored by Michael Jung's avatar Michael Jung Committed by Alexandre Julliard

CryptDeriveKey - set return key handle to NULL in case of failure.

parent 64c63dd4
......@@ -756,6 +756,7 @@ BOOL WINAPI CryptDeriveKey (HCRYPTPROV hProv, ALG_ID Algid, HCRYPTHASH hBaseData
/* CSP error! */
CRYPT_Free(key);
*phKey = 0;
return FALSE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment