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

This commit is contained in:
Michael Jung 2004-10-11 19:52:54 +00:00 committed by Alexandre Julliard
parent 64c63dd4b8
commit 09a81f8c3f
1 changed files with 1 additions and 0 deletions

View File

@ -756,6 +756,7 @@ BOOL WINAPI CryptDeriveKey (HCRYPTPROV hProv, ALG_ID Algid, HCRYPTHASH hBaseData
/* CSP error! */
CRYPT_Free(key);
*phKey = 0;
return FALSE;
}