diff options
author | Matt Caswell <matt@openssl.org> | 2016-02-10 15:16:06 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-02-10 17:40:59 +0000 |
commit | 302f75887e52bbe0ab7a5806335a0a1264323b07 (patch) | |
tree | 704e3638b402a89e064f6cde7d893ad8b687581e /crypto/async/async.c | |
parent | 0fc32b0718ec210e03b6d8623d4819ed04615a1b (diff) |
Attempt to log an error if init failed
If init failed we'd like to set an error code to indicate that. But if
init failed then when the error system tries to load its strings its going
to fail again. We could get into an infinite loop. Therefore we just set
a single error the first time around. After that no error is set.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/async/async.c')
-rw-r--r-- | crypto/async/async.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/crypto/async/async.c b/crypto/async/async.c index af9da35f99..ebc5ebbe93 100644 --- a/crypto/async/async.c +++ b/crypto/async/async.c @@ -363,11 +363,9 @@ int ASYNC_init_thread(size_t max_size, size_t init_size) } if (!OPENSSL_init_crypto(OPENSSL_INIT_ASYNC, NULL)) { - ASYNCerr(ASYNC_F_ASYNC_INIT_THREAD, ERR_R_NOT_INITED); return 0; } if (!ossl_init_thread_start(OPENSSL_INIT_THREAD_ASYNC)) { - ASYNCerr(ASYNC_F_ASYNC_INIT_THREAD, ERR_R_NOT_INITED); return 0; } |