crypt32: Only destroy a decoded message's hash if it's been created.
This commit is contained in:
parent
d76e1899ad
commit
6f2ae25441
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue