From a05e456814f5c62bc62115d37c2d80c3156d80ad Mon Sep 17 00:00:00 2001 From: tb Date: Tue, 9 Jul 2024 16:37:43 +0000 Subject: [PATCH] Replace an ossl_assert() with an error check --- lib/libcrypto/kdf/tls1_prf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/libcrypto/kdf/tls1_prf.c b/lib/libcrypto/kdf/tls1_prf.c index a03daf05fcd..2483cf96a0d 100644 --- a/lib/libcrypto/kdf/tls1_prf.c +++ b/lib/libcrypto/kdf/tls1_prf.c @@ -201,8 +201,7 @@ static int tls1_prf_P_hash(const EVP_MD *md, size_t A1_len; int ret = 0; - chunk = EVP_MD_size(md); - if (!ossl_assert(chunk > 0)) + if ((chunk = EVP_MD_size(md)) < 0) goto err; ctx = EVP_MD_CTX_new(); -- 2.20.1