소스 검색

r16533@catbus: nickm | 2007-11-07 12:42:58 -0500
Fix another "TLS error. breaking connection".~


svn:r12416

Nick Mathewson 18 년 전
부모
커밋
f18e94116b
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      src/or/connection_or.c

+ 5 - 2
src/or/connection_or.c

@@ -577,10 +577,13 @@ connection_tls_start_handshake(or_connection_t *conn, int receiving)
 int
 int
 connection_tls_continue_handshake(or_connection_t *conn)
 connection_tls_continue_handshake(or_connection_t *conn)
 {
 {
+  int result;
   check_no_tls_errors();
   check_no_tls_errors();
-  switch (tor_tls_handshake(conn->tls)) {
+  result = tor_tls_handshake(conn->tls);
+  switch (result) {
     CASE_TOR_TLS_ERROR_ANY:
     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;
       return -1;
     case TOR_TLS_DONE:
     case TOR_TLS_DONE:
       return connection_tls_finish_handshake(conn);
       return connection_tls_finish_handshake(conn);