Skip to content
Snippets Groups Projects
Commit 617617e2 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Don't schedule excess_renegotiations_callback unless it's set

Partial fix for bug 4587; reported by "frosty_un".
parent 58d1aa44
No related branches found
No related tags found
No related merge requests found
......@@ -1318,7 +1318,8 @@ tor_tls_got_client_hello(tor_tls_t *tls)
}
tls->got_renegotiate = 1;
} else if (tls->server_handshake_count > 2) {
} else if (tls->server_handshake_count > 2 &&
tls->excess_renegotiations_callback) {
/* We got more than one renegotiation requests. The Tor protocol
needs just one renegotiation; more than that probably means
They are trying to DoS us and we have to stop them. We can't
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment