mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Revert "Don't schedule excess_renegotiations_callback unless it's set"
This reverts commit 617617e21a
.
This commit is contained in:
parent
75134c6c86
commit
acc1806eb8
@ -1333,8 +1333,7 @@ tor_tls_got_client_hello(tor_tls_t *tls)
|
||||
}
|
||||
|
||||
tls->got_renegotiate = 1;
|
||||
} else if (tls->server_handshake_count > 2 &&
|
||||
tls->excess_renegotiations_callback) {
|
||||
} else if (tls->server_handshake_count > 2) {
|
||||
/* 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
|
||||
|
Loading…
Reference in New Issue
Block a user