Module: wine Branch: master Commit: 6f2ae254410b36a841d2ca9908e6d4dbd37dc511 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6f2ae254410b36a841d2ca9908...
Author: Juan Lang juan.lang@gmail.com Date: Fri Jul 27 10:58:52 2007 -0700
crypt32: Only destroy a decoded message's hash if it's been created.
---
dlls/crypt32/msg.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/crypt32/msg.c b/dlls/crypt32/msg.c index bca4040..f554c78 100644 --- a/dlls/crypt32/msg.c +++ b/dlls/crypt32/msg.c @@ -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);