summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crypto/evp/digest.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/evp/digest.c b/crypto/evp/digest.c
index 13ffbb7209..0143ab6f94 100644
--- a/crypto/evp/digest.c
+++ b/crypto/evp/digest.c
@@ -137,6 +137,7 @@ int EVP_DigestInit(EVP_MD_CTX *ctx, const EVP_MD *type)
ctx->digest=type;
if (type->ctx_size)
ctx->md_data=OPENSSL_malloc(type->ctx_size);
+ }
return type->init(ctx);
}