summaryrefslogtreecommitdiff
path: root/deps/openssl/openssl/crypto/evp/digest.c
diff options
context:
space:
mode:
authorFedor Indutny <fedor.indutny@gmail.com>2014-01-06 19:35:36 +0400
committerFedor Indutny <fedor.indutny@gmail.com>2014-01-08 02:43:17 +0400
commit390598608c900adcc0ce753d5255c0a805505287 (patch)
treefe9049237e5e9346845a5cb4ca59dfab4a902914 /deps/openssl/openssl/crypto/evp/digest.c
parentf057c7049eea6e6396dfd8117910ccb2a5c8977a (diff)
downloadandroid-node-v8-390598608c900adcc0ce753d5255c0a805505287.tar.gz
android-node-v8-390598608c900adcc0ce753d5255c0a805505287.tar.bz2
android-node-v8-390598608c900adcc0ce753d5255c0a805505287.zip
deps: update openssl to 1.0.1f
Diffstat (limited to 'deps/openssl/openssl/crypto/evp/digest.c')
-rw-r--r--deps/openssl/openssl/crypto/evp/digest.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/deps/openssl/openssl/crypto/evp/digest.c b/deps/openssl/openssl/crypto/evp/digest.c
index 6fc469f9c4..d14e8e48d5 100644
--- a/deps/openssl/openssl/crypto/evp/digest.c
+++ b/deps/openssl/openssl/crypto/evp/digest.c
@@ -366,8 +366,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 */