From 7d248ee0aed6bf364b96fd100835b15ccfede309 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Wed, 21 Jun 2017 15:55:38 +0100 Subject: [PATCH] Remove OPENSSL_assert() from crypto/kdf Reviewed-by: Andy Polyakov (Merged from https://github.com/openssl/openssl/pull/3740) --- crypto/kdf/tls1_prf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.25.1