mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
Only set a cookie when we intend to.
svn:r3114
This commit is contained in:
parent
e93077c82a
commit
06ce31b948
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user