[or-cvs] Include strerror(errno) with tls syscall errors

Nick Mathewson nickm at seul.org
Mon Apr 26 18:12:00 UTC 2004


Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/tmp/cvs-serv11364/src/common

Modified Files:
	tortls.c 
Log Message:
Include strerror(errno) with tls syscall errors

Index: tortls.c
===================================================================
RCS file: /home/or/cvsroot/src/common/tortls.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- tortls.c	26 Apr 2004 16:52:47 -0000	1.47
+++ tortls.c	26 Apr 2004 18:11:58 -0000	1.48
@@ -97,7 +97,8 @@
     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:



More information about the tor-commits mailing list