diff options
Diffstat (limited to 'src/or/control.c')
-rw-r--r-- | src/or/control.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/control.c b/src/or/control.c index dfe0ea55ef..958e5dc804 100644 --- a/src/or/control.c +++ b/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); |