aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2017-06-21 15:55:38 +0100
committerMatt Caswell <matt@openssl.org>2017-08-21 08:44:44 +0100
commit7d248ee0aed6bf364b96fd100835b15ccfede309 (patch)
tree59c49ec85fd8b3a0b8a463b80bca25db6c67777a
parent8f9ee7a33f4e8a52642335673f2cdc57ecdd38cc (diff)
downloadopenssl-7d248ee0aed6bf364b96fd100835b15ccfede309.tar.gz
Remove OPENSSL_assert() from crypto/kdf
Reviewed-by: Andy Polyakov <appro@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3740)
-rw-r--r--crypto/kdf/tls1_prf.c3
1 files changed, 2 insertions, 1 deletions
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();