From 3cd01ca9a1c25c65088fe819d07b04f2c2e0d140 Mon Sep 17 00:00:00 2001
From: Roger Dingledine <arma@torproject.org>
Date: Wed, 24 May 2006 23:03:28 +0000
Subject: make cookie authentication for the controller work again, maybe. it
 sure doesn't now.

svn:r6494
---
 src/or/control.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/or/control.c b/src/or/control.c
index 7413d3430..6795251cd 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;
     }
-- 
cgit v1.2.3