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