summaryrefslogtreecommitdiff
path: root/src/or/control.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-05-24 23:04:05 +0000
committerRoger Dingledine <arma@torproject.org>2006-05-24 23:04:05 +0000
commit7c843b4ee0da974d43cb06098fd44d5b6e564f6f (patch)
treef0e01f7014ba15099e5fbf8ff27f1cf3f2c3526c /src/or/control.c
parent7778fd906876b14b69b9dfbca578b20c8475b126 (diff)
downloadtor-7c843b4ee0da974d43cb06098fd44d5b6e564f6f.tar.gz
tor-7c843b4ee0da974d43cb06098fd44d5b6e564f6f.zip
and backport the cookie authentication fix
svn:r6495
Diffstat (limited to 'src/or/control.c')
-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 db4d2ec978..bcb6addef6 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;
}