aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index db50e87402..f7ecdea0fc 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -366,6 +366,7 @@ _connection_free(connection_t *conn)
if (conn->s >= 0) {
log_debug(LD_NET,"closing fd %d.",conn->s);
tor_close_socket(conn->s);
+ conn->s = -1;
}
if (conn->type == CONN_TYPE_OR &&