projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc9c9e4
)
Ignore NULL parameter in EVP_MD_CTX_destroy.
author
Dr. Stephen Henson
<steve@openssl.org>
Fri, 20 Dec 2013 15:12:26 +0000
(15:12 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Fri, 20 Dec 2013 23:24:26 +0000
(23:24 +0000)
(cherry picked from commit
a6c62f0c25a756c263a80ce52afbae888028e986
)
crypto/evp/digest.c
patch
|
blob
|
history
diff --git
a/crypto/evp/digest.c
b/crypto/evp/digest.c
index cfd5401dbd2380ae67a802e43eb74d7fdf4b6e31..87317572fe621b4e6ae13207c572dff5cd3419af 100644
(file)
--- a/
crypto/evp/digest.c
+++ b/
crypto/evp/digest.c
@@
-379,8
+379,11
@@
int EVP_Digest(const void *data, size_t count,
void EVP_MD_CTX_destroy(EVP_MD_CTX *ctx)
{
- EVP_MD_CTX_cleanup(ctx);
- OPENSSL_free(ctx);
+ if (ctx)
+ {
+ EVP_MD_CTX_cleanup(ctx);
+ OPENSSL_free(ctx);
+ }
}
/* This call frees resources associated with the context */