diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-12-07 19:36:43 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-12-07 19:36:43 +0000 |
commit | 06ce31b9488fe77e4c03249ac9398bd915909a30 (patch) | |
tree | fabbfc15531c5e0135d0a1e0878a0d880d94246d /src | |
parent | e93077c82aedd44f0e4de2f6c97212ec6c020b40 (diff) | |
download | tor-06ce31b9488fe77e4c03249ac9398bd915909a30.tar.gz tor-06ce31b9488fe77e4c03249ac9398bd915909a30.zip |
Only set a cookie when we intend to.
svn:r3114
Diffstat (limited to 'src')
-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); |