summaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-02-28 02:52:51 +0000
committerNick Mathewson <nickm@torproject.org>2005-02-28 02:52:51 +0000
commit97bc49bd72c20bf6ffae16e30941ccd7c15089d0 (patch)
treedd3310aeb5bfe662e7c89d601a5c611d9af5bda6 /src/or/connection.c
parent0a2be3c9d83f86b1891bfca8b55d9b280007be79 (diff)
downloadtor-97bc49bd72c20bf6ffae16e30941ccd7c15089d0.tar.gz
tor-97bc49bd72c20bf6ffae16e30941ccd7c15089d0.zip
Try a little harder to avoid openssl SSL* double-free reports.
svn:r3710
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index c6a45eb308..c76cc45625 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -170,8 +170,10 @@ _connection_free(connection_t *conn) {
if (connection_speaks_cells(conn)) {
if (conn->state == OR_CONN_STATE_OPEN)
directory_set_dirty();
- if (conn->tls)
+ if (conn->tls) {
tor_tls_free(conn->tls);
+ conn->tls = NULL;
+ }
}
if (conn->identity_pkey)