aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorRobert Ransom <rransom.8774@gmail.com>2010-10-02 00:31:45 -0700
committerNick Mathewson <nickm@torproject.org>2010-10-04 13:53:54 -0400
commit1b8c8059c72940e47afa787fe50adbcfeb192895 (patch)
treea56a9ab808b4f69c48297bdeacdb698443931aae /src/common
parentc70d9d77ab304dd490be7bb3fefd0eeb89d37373 (diff)
downloadtor-1b8c8059c72940e47afa787fe50adbcfeb192895.tar
tor-1b8c8059c72940e47afa787fe50adbcfeb192895.tar.gz
Correct a bogus comment.
Whether or not OpenSSL reference-counts SSL_CTX objects is irrelevant; what matters is that Tor reference-counts its wrapper objects for SSL_CTXs.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/tortls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c
index 0304045e6..99f3f4abb 100644
--- a/src/common/tortls.c
+++ b/src/common/tortls.c
@@ -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;