ソースを参照

Only set a cookie when we intend to.

svn:r3114
Nick Mathewson 21 年 前
コミット
06ce31b948
1 ファイル変更3 行追加1 行削除
  1. 3 1
      src/or/control.c

+ 3 - 1
src/or/control.c

@@ -589,8 +589,10 @@ init_cookie_authentication(int enabled)
 {
   char fname[512];
 
-  if (!enabled)
+  if (!enabled) {
     authentication_cookie_is_set = 0;
+    return 0;
+  }
 
   tor_snprintf(fname, sizeof(fname), "%s/control_auth_cookie",
                get_options()->DataDirectory);