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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 4f95f10be4..402ae61b55 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -283,8 +283,7 @@ void connection_about_to_close_connection(connection_t *conn)
conn->hold_open_until_flushed = 1;
/* XXX this socks_reply never gets sent, since conn
* gets removed right after this function finishes. */
- connection_ap_handshake_socks_reply(conn, NULL, 0, -1);
- conn->socks_request->has_finished = 1;
+ connection_ap_handshake_socks_reply(conn, NULL, 0, SOCKS5_GENERAL_ERROR);
} else {
control_event_stream_status(conn, STREAM_EVENT_CLOSED);
}