Commit 6f2ae254 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: Only destroy a decoded message's hash if it's been created.

parent d76e1899
......@@ -1255,7 +1255,8 @@ static void CDecodeMsg_Close(HCRYPTMSG hCryptMsg)
switch (msg->type)
{
case CMSG_HASHED:
CryptDestroyHash(msg->u.hash);
if (msg->u.hash)
CryptDestroyHash(msg->u.hash);
break;
case CMSG_SIGNED:
LocalFree(msg->u.signedInfo);
......
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