diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/tortls.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c index e54c44d31..f2fddaa49 100644 --- a/src/common/tortls.c +++ b/src/common/tortls.c @@ -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); |