[or-cvs] Only set a cookie when we intend to.
Nick Mathewson
nickm at seul.org
Tue Dec 7 19:36:45 UTC 2004
Update of /home/or/cvsroot/tor/src/or
In directory moria.mit.edu:/tmp/cvs-serv32501/src/or
Modified Files:
control.c
Log Message:
Only set a cookie when we intend to.
Index: control.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/control.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- control.c 30 Nov 2004 06:17:35 -0000 1.33
+++ control.c 7 Dec 2004 19:36:43 -0000 1.34
@@ -589,8 +589,10 @@
{
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);
More information about the tor-commits
mailing list