summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-11-03 11:52:35 -0400
committerNick Mathewson <nickm@torproject.org>2011-11-03 11:52:35 -0400
commit88c4b425bd49d4cde52fdce7eeb65bcf2304d0f6 (patch)
tree5e5f4c2066a8562dd2548617b92a47372afdafa2 /src
parentd029c3223ad0d72b8e065c0e92df734185987acf (diff)
downloadtor-88c4b425bd49d4cde52fdce7eeb65bcf2304d0f6.tar.gz
tor-88c4b425bd49d4cde52fdce7eeb65bcf2304d0f6.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/or/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/command.c b/src/or/command.c
index c02d353bb1..6eb261c370 100644
--- a/src/or/command.c
+++ b/src/or/command.c
@@ -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);