aboutsummaryrefslogtreecommitdiff
path: root/openssl/crypto/evp/digest.c
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/crypto/evp/digest.c')
-rw-r--r--openssl/crypto/evp/digest.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openssl/crypto/evp/digest.c b/openssl/crypto/evp/digest.c
index 467e6b5ae..6fc469f9c 100644
--- a/openssl/crypto/evp/digest.c
+++ b/openssl/crypto/evp/digest.c
@@ -267,6 +267,7 @@ int EVP_DigestFinal_ex(EVP_MD_CTX *ctx, unsigned char *md, unsigned int *size)
return FIPS_digestfinal(ctx, md, size);
#else
int ret;
+
OPENSSL_assert(ctx->digest->md_size <= EVP_MAX_MD_SIZE);
ret=ctx->digest->final(ctx,md);
if (size != NULL)