Only set a cookie when we intend to.

svn:r3114
This commit is contained in:
Nick Mathewson 2004-12-07 19:36:43 +00:00
parent e93077c82a
commit 06ce31b948

View File

@ -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);