mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
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.
This commit is contained in:
parent
c70d9d77ab
commit
1b8c8059c7
@ -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);
|
SSL_CTX_set_mode(result->ctx, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER);
|
||||||
/* Free the old context if one exists. */
|
/* Free the old context if one exists. */
|
||||||
if (global_tls_context) {
|
if (global_tls_context) {
|
||||||
/* This is safe even if there are open connections: OpenSSL does
|
/* This is safe even if there are open connections: we reference-
|
||||||
* reference counting with SSL and SSL_CTX objects. */
|
* count tor_tls_context_t objects. */
|
||||||
tor_tls_context_decref(global_tls_context);
|
tor_tls_context_decref(global_tls_context);
|
||||||
}
|
}
|
||||||
global_tls_context = result;
|
global_tls_context = result;
|
||||||
|
Loading…
Reference in New Issue
Block a user