mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
Add more logging on some ssl errors.
svn:r603
This commit is contained in:
parent
66d7448258
commit
f81178a312
@ -80,11 +80,13 @@ tor_tls_get_error(tor_tls *tls, int r, int extra,
|
||||
return _TOR_TLS_SYSCALL;
|
||||
assert(severity != LOG_ERR); /* XXX remove me when the bug is found */
|
||||
log(severity, "TLS error: <syscall error>.");
|
||||
tls_log_error(severity, doing);
|
||||
return TOR_TLS_ERROR;
|
||||
case SSL_ERROR_ZERO_RETURN:
|
||||
if (extra&CATCH_ZERO)
|
||||
return _TOR_TLS_ZERORETURN;
|
||||
log(severity, "TLS error: Zero return");
|
||||
tls_log_error(severity, doing);
|
||||
return TOR_TLS_ERROR;
|
||||
default:
|
||||
tls_log_error(severity, doing);
|
||||
|
Loading…
Reference in New Issue
Block a user