]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Correct a bogus comment.
authorRobert Ransom <rransom.8774@gmail.com>
Sat, 2 Oct 2010 07:31:45 +0000 (00:31 -0700)
committerNick Mathewson <nickm@torproject.org>
Mon, 4 Oct 2010 17:53:54 +0000 (13:53 -0400)
Whether or not OpenSSL reference-counts SSL_CTX objects is irrelevant;
what matters is that Tor reference-counts its wrapper objects for
SSL_CTXs.

src/common/tortls.c

index 0304045e6321ec6524618bb142cf3fa561726831..99f3f4abbc5323b32cd52158161a900a6b2c6fb0 100644 (file)
@@ -723,8 +723,8 @@ tor_tls_context_new(crypto_pk_env_t *identity, unsigned int key_lifetime)
   SSL_CTX_set_mode(result->ctx, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER);
   /* Free the old context if one exists. */
   if (global_tls_context) {
-    /* This is safe even if there are open connections: OpenSSL does
-     * reference counting with SSL and SSL_CTX objects. */
+    /* This is safe even if there are open connections: we reference-
+     * count tor_tls_context_t objects. */
     tor_tls_context_decref(global_tls_context);
   }
   global_tls_context = result;