[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] and backport the cookie authentication fix



Update of /home/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/tor-011x/tor/src/or

Modified Files:
      Tag: tor-0_1_1-patches
	control.c 
Log Message:
and backport the cookie authentication fix


Index: control.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/control.c,v
retrieving revision 1.189.2.3
retrieving revision 1.189.2.4
diff -u -p -d -r1.189.2.3 -r1.189.2.4
--- control.c	23 May 2006 02:32:37 -0000	1.189.2.3
+++ control.c	24 May 2006 23:04:05 -0000	1.189.2.4
@@ -1023,7 +1023,7 @@ handle_control_authenticate(connection_t
     }
   }
   if (options->CookieAuthentication) {
-    if (len == AUTHENTICATION_COOKIE_LEN &&
+    if (password_len == AUTHENTICATION_COOKIE_LEN &&
         !memcmp(authentication_cookie, password, password_len)) {
       goto ok;
     }