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/err | |
parent | 0fc32b0718ec210e03b6d8623d4819ed04615a1b (diff) | |
download | openssl-302f75887e52bbe0ab7a5806335a0a1264323b07.zip openssl-302f75887e52bbe0ab7a5806335a0a1264323b07.tar.gz openssl-302f75887e52bbe0ab7a5806335a0a1264323b07.tar.bz2 |
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/err')
-rw-r--r-- | crypto/err/err.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/err/err.c b/crypto/err/err.c index 7265633..5e1d5c5 100644 --- a/crypto/err/err.c +++ b/crypto/err/err.c @@ -223,6 +223,7 @@ static ERR_STRING_DATA ERR_str_reasons[] = { {ERR_R_PASSED_NULL_PARAMETER, "passed a null parameter"}, {ERR_R_INTERNAL_ERROR, "internal error"}, {ERR_R_DISABLED, "called a function that was disabled at compile-time"}, + {ERR_R_INIT_FAIL, "init fail"}, {0, NULL}, }; |