From 06ce31b9488fe77e4c03249ac9398bd915909a30 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 7 Dec 2004 19:36:43 +0000 Subject: [PATCH] Only set a cookie when we intend to. svn:r3114 --- src/or/control.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);