X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fkdf%2Ftls1_prf.c;h=ce8425d4d4fb7dcbde14fa4353dd813680144409;hp=063ea0390aeaf86faba3a41cdb3f3793dc060664;hb=7d248ee0aed6bf364b96fd100835b15ccfede309;hpb=8f9ee7a33f4e8a52642335673f2cdc57ecdd38cc diff --git a/crypto/kdf/tls1_prf.c b/crypto/kdf/tls1_prf.c index 063ea0390a..ce8425d4d4 100644 --- a/crypto/kdf/tls1_prf.c +++ b/crypto/kdf/tls1_prf.c @@ -184,7 +184,8 @@ static int tls1_prf_P_hash(const EVP_MD *md, int ret = 0; chunk = EVP_MD_size(md); - OPENSSL_assert(chunk >= 0); + if (!ossl_assert(chunk >= 0)) + goto err; ctx = EVP_MD_CTX_new(); ctx_tmp = EVP_MD_CTX_new();