diff options
author | Pauli <pauli@openssl.org> | 2023-03-03 10:14:39 +1100 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2023-03-06 08:19:13 +1100 |
commit | b1cd268c034268f4d37c665ee4b5148f9d8700bb (patch) | |
tree | 3b48b7ae9fc8f8a5e33c79384c4b78d9c5f93f89 /crypto/evp | |
parent | d108082377aa5f1c5420ec76ca2e9a5b8fb12a32 (diff) |
Fix cast.
Fixes #20424
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20425)
Diffstat (limited to 'crypto/evp')
-rw-r--r-- | crypto/evp/digest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/digest.c b/crypto/evp/digest.c index f6819a321b..6ce80a1b03 100644 --- a/crypto/evp/digest.c +++ b/crypto/evp/digest.c @@ -457,7 +457,7 @@ int EVP_DigestFinal_ex(EVP_MD_CTX *ctx, unsigned char *md, unsigned int *isize) if (isize != NULL) { if (size <= UINT_MAX) { - *isize = (int)size; + *isize = (unsigned int)size; } else { ERR_raise(ERR_LIB_EVP, EVP_R_FINAL_ERROR); ret = 0; |