소스 검색

make cookie authentication for the controller work again, maybe.
it sure doesn't now.


svn:r6494

Roger Dingledine 19 년 전
부모
커밋
3cd01ca9a1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/or/control.c

+ 1 - 1
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;
     }