aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/connection_edge.h
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2018-09-15 22:17:57 +0200
committerAlexander Færøy <ahf@torproject.org>2018-09-15 22:17:57 +0200
commit3477a73af99eb72f8374928fdc2fab4858485219 (patch)
treebd8b6ce9d76cbe63857d4c7bd93678ad4649324e /src/core/or/connection_edge.h
parent9b511dc5d6a9e44bd8c8c644ad9445cab7cdafe2 (diff)
downloadtor-3477a73af99eb72f8374928fdc2fab4858485219.tar.gz
tor-3477a73af99eb72f8374928fdc2fab4858485219.zip
Add proxy headers as early as possible.
This patch moves the logic that adds the proxy headers to an earlier point in the exit connection lifetime, which ensures that the application data cannot be written to the outbuf before the proxy header is added. See: https://bugs.torproject.org/4700
Diffstat (limited to 'src/core/or/connection_edge.h')
-rw-r--r--src/core/or/connection_edge.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/or/connection_edge.h b/src/core/or/connection_edge.h
index c5ad3128a2..5b694428de 100644
--- a/src/core/or/connection_edge.h
+++ b/src/core/or/connection_edge.h
@@ -246,8 +246,7 @@ STATIC void connection_ap_handshake_rewrite(entry_connection_t *conn,
STATIC int connection_ap_process_http_connect(entry_connection_t *conn);
STATIC void
-export_hs_client_circuit_id(const edge_connection_t *edge_conn,
- connection_t *conn,
+export_hs_client_circuit_id(edge_connection_t *edge_conn,
hs_circuit_id_protocol_t protocol);
#endif /* defined(CONNECTION_EDGE_PRIVATE) */