From 09a81f8c3f96ef763a2018a4a00d7e6af218a0ef Mon Sep 17 00:00:00 2001 From: Michael Jung Date: Mon, 11 Oct 2004 19:52:54 +0000 Subject: [PATCH] CryptDeriveKey - set return key handle to NULL in case of failure. --- dlls/advapi32/crypt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/advapi32/crypt.c b/dlls/advapi32/crypt.c index ba38f6581fb..94ac6673b4b 100644 --- a/dlls/advapi32/crypt.c +++ b/dlls/advapi32/crypt.c @@ -756,6 +756,7 @@ BOOL WINAPI CryptDeriveKey (HCRYPTPROV hProv, ALG_ID Algid, HCRYPTHASH hBaseData /* CSP error! */ CRYPT_Free(key); + *phKey = 0; return FALSE; }