Procházet zdrojové kódy

Correct a couple of log messages in tortls.c

Robert Ransom před 13 roky
rodič
revize
c70d9d77ab
2 změnil soubory, kde provedl 8 přidání a 2 odebrání
  1. 6 0
      changes/bug1994
  2. 2 2
      src/common/tortls.c

+ 6 - 0
changes/bug1994

@@ -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.
+

+ 2 - 2
src/common/tortls.c

@@ -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;
 }