From f81178a312b3ac5f7beb6a8efe1a00e3959d5f37 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 15 Oct 2003 23:42:44 +0000 Subject: [PATCH] Add more logging on some ssl errors. svn:r603 --- src/common/tortls.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/tortls.c b/src/common/tortls.c index e54c44d312..f2fddaa496 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: ."); + 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);