Attempt to log an error if init failed
authorMatt Caswell <matt@openssl.org>
Wed, 10 Feb 2016 15:16:06 +0000 (15:16 +0000)
committerMatt Caswell <matt@openssl.org>
Wed, 10 Feb 2016 17:40:59 +0000 (17:40 +0000)
commit302f75887e52bbe0ab7a5806335a0a1264323b07
tree704e3638b402a89e064f6cde7d893ad8b687581e
parent0fc32b0718ec210e03b6d8623d4819ed04615a1b
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>
apps/errstr.c
crypto/async/async.c
crypto/cpt_err.c
crypto/err/err.c
crypto/init.c
include/openssl/crypto.h
include/openssl/err.h
include/openssl/ssl.h
ssl/ssl_err.c
ssl/ssl_init.c