tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 17a6bdfe68387c992606a8aa01361d28ac785162
parent 9444740f327b0e5b8ce04134a5cef017648f2add
Author: Alexander Hansen Færøy <ahf@torproject.org>
Date:   Mon, 10 Nov 2025 15:39:48 +0100

Merge branch 'fix_fuzzer_http_connect' into 'main'

Avoid BUG() in http_connect code when close_without_message is true.

See merge request tpo/core/tor!952
Diffstat:
Msrc/core/or/connection_edge.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/or/connection_edge.c b/src/core/or/connection_edge.c @@ -3241,7 +3241,7 @@ connection_ap_process_http_connect(entry_connection_t *conn) goto done; err: - if (BUG(errmsg == NULL) && ! close_without_message) + if (! close_without_message && BUG(errmsg == NULL)) errmsg = "HTTP/1.0 400 Bad Request\r\n"; if (errmsg) { if (!skip_error_log)