Преглед на файлове

Include strerror(errno) with tls syscall errors

svn:r1718
Nick Mathewson преди 21 години
родител
ревизия
337f7a981f
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      src/common/tortls.c

+ 2 - 1
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: