diff options
author | Roger Dingledine <arma@torproject.org> | 2006-05-24 23:03:28 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-05-24 23:03:28 +0000 |
commit | 3cd01ca9a1c25c65088fe819d07b04f2c2e0d140 (patch) | |
tree | 7e60936f42f89eadd011de344516def753d8aa1e | |
parent | 6066d68ac3a340e2a19a28de1ac17fbe15f535ab (diff) | |
download | tor-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.c | 2 |
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; } |