diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2024-07-09 16:37:44 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2024-07-09 16:37:44 +0000 |
commit | ab2165c3beb27aafb836fb4477ba09da863d63f1 (patch) | |
tree | feef70687406a4af267d4525c744ddc90f61d0e5 /lib/libcrypto/kdf | |
parent | 505f576d200c4a7599785128f8d53fdafdf77250 (diff) |
Replace an ossl_assert() with an error check
Diffstat (limited to 'lib/libcrypto/kdf')
-rw-r--r-- | lib/libcrypto/kdf/tls1_prf.c | 3 |
1 files changed, 1 insertions, 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(); |