From: tb Date: Tue, 9 Jul 2024 16:37:43 +0000 (+0000) Subject: Replace an ossl_assert() with an error check X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a05e456814f5c62bc62115d37c2d80c3156d80ad;p=openbsd Replace an ossl_assert() with an error check --- 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();