mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Fix bug 4367: correctly detect auth_challenge cells we can't use
Found by frosty_un, bugfix on 0.2.3.6-alpha, fix suggested by arma.
This commit is contained in:
parent
d029c3223a
commit
88c4b425bd
5
changes/bug4367
Normal file
5
changes/bug4367
Normal file
@ -0,0 +1,5 @@
|
||||
o Minor bugfixes:
|
||||
- Successfully detect AUTH_CHALLENGE cells with no recognized
|
||||
authentication type listed. Fixes bug 4367; bugfix on 0.2.3.6-alpha.
|
||||
Found by frosty_un.
|
||||
|
@ -1100,7 +1100,7 @@ command_process_auth_challenge_cell(var_cell_t *cell, or_connection_t *conn)
|
||||
|
||||
conn->handshake_state->received_auth_challenge = 1;
|
||||
|
||||
if (use_type && public_server_mode(get_options())) {
|
||||
if (use_type >= 0 && public_server_mode(get_options())) {
|
||||
log_info(LD_OR, "Got an AUTH_CHALLENGE cell from %s:%d: Sending "
|
||||
"authentication",
|
||||
safe_str(conn->_base.address), conn->_base.port);
|
||||
|
Loading…
Reference in New Issue
Block a user