summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-04-26 18:11:58 +0000
committerNick Mathewson <nickm@torproject.org>2004-04-26 18:11:58 +0000
commit337f7a981fae2fa8733eb83567463f8b6151c20d (patch)
treea9d1e4a38103e12366b4b937a43d0636e931914b /src
parentf6dbe5a0d42dcf82d440ef24b7a879854c3da14f (diff)
downloadtor-337f7a981fae2fa8733eb83567463f8b6151c20d.tar.gz
tor-337f7a981fae2fa8733eb83567463f8b6151c20d.zip
Include strerror(errno) with tls syscall errors
svn:r1718
Diffstat (limited to 'src')
-rw-r--r--src/common/tortls.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c
index e3078a7563..5b6a58de85 100644
--- a/src/common/tortls.c
+++ b/src/common/tortls.c
@@ -97,7 +97,8 @@ tor_tls_get_error(tor_tls *tls, int r, int extra,
case SSL_ERROR_SYSCALL:
if (extra&CATCH_SYSCALL)
return _TOR_TLS_SYSCALL;
- log(severity, "TLS error: <syscall error> (errno=%d)",errno);
+ log(severity, "TLS error: <syscall error> (errno=%d: %s)",errno,
+ strerror(errno));
tls_log_errors(severity, doing);
return TOR_TLS_ERROR;
case SSL_ERROR_ZERO_RETURN: