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/dsa | |
parent | 57358a83a401ef469353b7ebdae0cf3b870a4d5e (diff) | |
download | openssl-b2b361f6afb55c501bedef664c1fdc0d71a91d4b.tar.gz |
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/dsa')
-rw-r--r-- | crypto/dsa/dsa_lib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/dsa/dsa_lib.c b/crypto/dsa/dsa_lib.c index 92945943e4..14cb35f82e 100644 --- a/crypto/dsa/dsa_lib.c +++ b/crypto/dsa/dsa_lib.c @@ -73,6 +73,7 @@ DSA *DSA_new_method(ENGINE *engine) ret->references = 1; ret->lock = CRYPTO_THREAD_lock_new(); if (ret->lock == NULL) { + DSAerr(DSA_F_DSA_NEW_METHOD, ERR_R_MALLOC_FAILURE); OPENSSL_free(ret); return NULL; } |