projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f9ee7a
)
Remove OPENSSL_assert() from crypto/kdf
author
Matt Caswell
<matt@openssl.org>
Wed, 21 Jun 2017 14:55:38 +0000
(15:55 +0100)
committer
Matt Caswell
<matt@openssl.org>
Mon, 21 Aug 2017 07:44:44 +0000
(08:44 +0100)
Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3740)
crypto/kdf/tls1_prf.c
patch
|
blob
|
history
diff --git
a/crypto/kdf/tls1_prf.c
b/crypto/kdf/tls1_prf.c
index 063ea0390aeaf86faba3a41cdb3f3793dc060664..ce8425d4d4fb7dcbde14fa4353dd813680144409 100644
(file)
--- 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();