Explorar el Código

Only set a cookie when we intend to.

svn:r3114
Nick Mathewson hace 21 años
padre
commit
06ce31b948
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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);