Browse Source

if we're the server-side of the tls and there are problems,
don't yell as loudly.


svn:r6716

Roger Dingledine 19 years ago
parent
commit
5dc1e6f788
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/common/tortls.c

+ 2 - 1
src/common/tortls.c

@@ -531,7 +531,8 @@ tor_tls_handshake(tor_tls_t *tls)
   }
   r = tor_tls_get_error(tls,r,0, "handshaking", LOG_INFO);
   if (ERR_peek_error() != 0) {
-    tls_log_errors(LOG_WARN, "handshaking");
+    tls_log_errors(tls->isServer ? LOG_PROTOCOL_WARN : LOG_WARN,
+                   "handshaking");
     return TOR_TLS_ERROR;
   }
   if (r == TOR_TLS_DONE) {