mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 22:47:12 +01:00
Only set a cookie when we intend to.
svn:r3114
This commit is contained in:
parent
e93077c82a
commit
06ce31b948
1 changed files with 3 additions and 1 deletions
|
@ -589,8 +589,10 @@ init_cookie_authentication(int enabled)
|
||||||
{
|
{
|
||||||
char fname[512];
|
char fname[512];
|
||||||
|
|
||||||
if (!enabled)
|
if (!enabled) {
|
||||||
authentication_cookie_is_set = 0;
|
authentication_cookie_is_set = 0;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
tor_snprintf(fname, sizeof(fname), "%s/control_auth_cookie",
|
tor_snprintf(fname, sizeof(fname), "%s/control_auth_cookie",
|
||||||
get_options()->DataDirectory);
|
get_options()->DataDirectory);
|
||||||
|
|
Loading…
Add table
Reference in a new issue