[or-cvs] r12416: Fix another "TLS error. breaking connection".~ (in tor/trunk: . src/or)

nickm at seul.org nickm at seul.org
Wed Nov 7 17:44:15 UTC 2007


Author: nickm
Date: 2007-11-07 12:44:15 -0500 (Wed, 07 Nov 2007)
New Revision: 12416

Modified:
   tor/trunk/
   tor/trunk/src/or/connection_or.c
Log:
 r16533 at catbus:  nickm | 2007-11-07 12:42:58 -0500
 Fix another "TLS error. breaking connection".~



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/trunk [r16533] on 8246c3cf-6607-4228-993b-4d95d33730f1

Modified: tor/trunk/src/or/connection_or.c
===================================================================
--- tor/trunk/src/or/connection_or.c	2007-11-07 17:41:14 UTC (rev 12415)
+++ tor/trunk/src/or/connection_or.c	2007-11-07 17:44:15 UTC (rev 12416)
@@ -577,10 +577,13 @@
 int
 connection_tls_continue_handshake(or_connection_t *conn)
 {
+  int result;
   check_no_tls_errors();
-  switch (tor_tls_handshake(conn->tls)) {
+  result = tor_tls_handshake(conn->tls);
+  switch (result) {
     CASE_TOR_TLS_ERROR_ANY:
-      log_info(LD_OR,"tls error. breaking connection.");
+    log_info(LD_OR,"tls error [%s]. breaking connection.",
+             tor_tls_err_to_string(result));
       return -1;
     case TOR_TLS_DONE:
       return connection_tls_finish_handshake(conn);



More information about the tor-commits mailing list