]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Correct a couple of log messages in tortls.c
authorRobert Ransom <rransom.8774@gmail.com>
Sat, 2 Oct 2010 00:48:07 +0000 (17:48 -0700)
committerNick Mathewson <nickm@torproject.org>
Mon, 4 Oct 2010 17:53:48 +0000 (13:53 -0400)
changes/bug1994 [new file with mode: 0644]
src/common/tortls.c

diff --git a/changes/bug1994 b/changes/bug1994
new file mode 100644 (file)
index 0000000..07095aa
--- /dev/null
@@ -0,0 +1,6 @@
+  o Minor bugfixes:
+    - Correctly describe errors that occur when generating a TLS object
+      when logging them.  Previously we would attribtue them to a failure
+      while generating a TLS context.  Bugfix by Robert Ransom.  Bugfix 
+      on 0.1.0.4-rc.
+
index 25d44cc970064902a97cb8d04d87ad2b80101fcb..0304045e6321ec6524618bb142cf3fa561726831 100644 (file)
@@ -930,7 +930,7 @@ tor_tls_new(int sock, int isServer)
 
   tor_assert(global_tls_context); /* make sure somebody made it first */
   if (!(result->ssl = SSL_new(global_tls_context->ctx))) {
-    tls_log_errors(NULL, LOG_WARN, LD_NET, "generating TLS context");
+    tls_log_errors(NULL, LOG_WARN, LD_NET, "creating SSL object");
     tor_free(result);
     return NULL;
   }
@@ -987,7 +987,7 @@ tor_tls_new(int sock, int isServer)
 #endif
 
   /* Not expected to get called. */
-  tls_log_errors(NULL, LOG_WARN, LD_NET, "generating TLS context");
+  tls_log_errors(NULL, LOG_WARN, LD_NET, "creating tor_tls_t object");
   return result;
 }