diff options
author | FdaSilvaYY <fdasilvayy@gmail.com> | 2016-04-30 16:23:33 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-06-01 13:14:49 +0100 |
commit | b2b361f6afb55c501bedef664c1fdc0d71a91d4b (patch) | |
tree | 2678410dc1fd78d2832316a9013104ca7698d23c /crypto/dh/dh_lib.c | |
parent | 57358a83a401ef469353b7ebdae0cf3b870a4d5e (diff) |
Raise an Err when CRYPTO_THREAD_lock_new fails
Add missing error raise call, as it is done everywhere else.
and as CRYPTO_THREAD_lock_new don't do it internally.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'crypto/dh/dh_lib.c')
-rw-r--r-- | crypto/dh/dh_lib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/dh/dh_lib.c b/crypto/dh/dh_lib.c index 8645b6728e..6a59f7faa4 100644 --- a/crypto/dh/dh_lib.c +++ b/crypto/dh/dh_lib.c @@ -64,6 +64,7 @@ DH *DH_new_method(ENGINE *engine) ret->references = 1; ret->lock = CRYPTO_THREAD_lock_new(); if (ret->lock == NULL) { + DHerr(DH_F_DH_NEW_METHOD, ERR_R_MALLOC_FAILURE); OPENSSL_free(ret); return NULL; } |