diff options
author | Roger Dingledine <arma@torproject.org> | 2006-05-24 23:04:05 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-05-24 23:04:05 +0000 |
commit | 7c843b4ee0da974d43cb06098fd44d5b6e564f6f (patch) | |
tree | f0e01f7014ba15099e5fbf8ff27f1cf3f2c3526c /src/or/control.c | |
parent | 7778fd906876b14b69b9dfbca578b20c8475b126 (diff) | |
download | tor-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.c | 2 |
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; } |