summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-05-24 23:03:28 +0000
committerRoger Dingledine <arma@torproject.org>2006-05-24 23:03:28 +0000
commit3cd01ca9a1c25c65088fe819d07b04f2c2e0d140 (patch)
tree7e60936f42f89eadd011de344516def753d8aa1e
parent6066d68ac3a340e2a19a28de1ac17fbe15f535ab (diff)
downloadtor-3cd01ca9a1c25c65088fe819d07b04f2c2e0d140.tar.gz
tor-3cd01ca9a1c25c65088fe819d07b04f2c2e0d140.zip
make cookie authentication for the controller work again, maybe.
it sure doesn't now. svn:r6494
-rw-r--r--src/or/control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/control.c b/src/or/control.c
index 7413d34303..6795251cda 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -1023,7 +1023,7 @@ handle_control_authenticate(connection_t *conn, uint32_t len, const char *body)
}
}
if (options->CookieAuthentication) {
- if (len == AUTHENTICATION_COOKIE_LEN &&
+ if (password_len == AUTHENTICATION_COOKIE_LEN &&
!memcmp(authentication_cookie, password, password_len)) {
goto ok;
}