From 97bc49bd72c20bf6ffae16e30941ccd7c15089d0 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 28 Feb 2005 02:52:51 +0000 Subject: Try a little harder to avoid openssl SSL* double-free reports. svn:r3710 --- src/or/connection.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/or/connection.c') 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) -- cgit v1.2.3-54-g00ecf