diff options
-rw-r--r-- | src/lib/libcrypto/kdf/tls1_prf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libcrypto/kdf/tls1_prf.c b/src/lib/libcrypto/kdf/tls1_prf.c index a03daf05fc..2483cf96a0 100644 --- a/src/lib/libcrypto/kdf/tls1_prf.c +++ b/src/lib/libcrypto/kdf/tls1_prf.c | |||
@@ -201,8 +201,7 @@ static int tls1_prf_P_hash(const EVP_MD *md, | |||
201 | size_t A1_len; | 201 | size_t A1_len; |
202 | int ret = 0; | 202 | int ret = 0; |
203 | 203 | ||
204 | chunk = EVP_MD_size(md); | 204 | if ((chunk = EVP_MD_size(md)) < 0) |
205 | if (!ossl_assert(chunk > 0)) | ||
206 | goto err; | 205 | goto err; |
207 | 206 | ||
208 | ctx = EVP_MD_CTX_new(); | 207 | ctx = EVP_MD_CTX_new(); |