summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-11-07 17:44:15 +0000
committerNick Mathewson <nickm@torproject.org>2007-11-07 17:44:15 +0000
commitf18e94116b0741ad6345ea91cd2b05f21611f6d4 (patch)
tree355d0297976bd5f9fea16f7ffc49fdae9cdbc4df
parent45b0ee42a36165fca8536d04fe1e399e1e7ef6ef (diff)
downloadtor-f18e94116b0741ad6345ea91cd2b05f21611f6d4.tar.gz
tor-f18e94116b0741ad6345ea91cd2b05f21611f6d4.zip
r16533@catbus: nickm | 2007-11-07 12:42:58 -0500
Fix another "TLS error. breaking connection".~ svn:r12416
-rw-r--r--src/or/connection_or.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c
index ab787bb61c..36e9e0bb11 100644
--- a/src/or/connection_or.c
+++ b/src/or/connection_or.c
@@ -577,10 +577,13 @@ connection_tls_start_handshake(or_connection_t *conn, int receiving)
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);