[or-cvs] r14431: Free baddir and badexit policy lists on exit. fixes bug 672. (in tor/trunk: . src/or)

nickm at seul.org nickm at seul.org
Wed Apr 23 20:47:54 UTC 2008


Author: nickm
Date: 2008-04-23 16:47:53 -0400 (Wed, 23 Apr 2008)
New Revision: 14431

Modified:
   tor/trunk/
   tor/trunk/ChangeLog
   tor/trunk/src/or/policies.c
Log:
 r15308 at tombo:  nickm | 2008-04-23 16:46:48 -0400
 Free baddir and badexit policy lists on exit.  fixes bug 672. only affects authorities.



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/trunk [r15308] on 49666b30-7950-49c5-bedf-9dc8f3168102

Modified: tor/trunk/ChangeLog
===================================================================
--- tor/trunk/ChangeLog	2008-04-23 20:32:31 UTC (rev 14430)
+++ tor/trunk/ChangeLog	2008-04-23 20:47:53 UTC (rev 14431)
@@ -42,6 +42,8 @@
       new entry guard connection. Bugfix on 0.1.2.8-beta; found by lodger.
     - Detect address changes correctly on non-directory mirror
       servers.  Fix for bug 652.
+    - Authorities correctly free policies on bad servers on
+      exit. Fixes bug 672.
 
   o Minor features:
     - Allow separate log levels to be configured for different logging

Modified: tor/trunk/src/or/policies.c
===================================================================
--- tor/trunk/src/or/policies.c	2008-04-23 20:32:31 UTC (rev 14430)
+++ tor/trunk/src/or/policies.c	2008-04-23 20:47:53 UTC (rev 14431)
@@ -923,6 +923,10 @@
   authdir_reject_policy = NULL;
   addr_policy_list_free(authdir_invalid_policy);
   authdir_invalid_policy = NULL;
+  addr_policy_list_free(authdir_baddir_policy);
+  authdir_baddir_policy = NULL;
+  addr_policy_list_free(authdir_badexit_policy);
+  authdir_badexit_policy = NULL;
 
   if (!HT_EMPTY(&policy_root))
     log_warn(LD_MM, "Still had some address policies cached at shutdown.");



More information about the tor-commits mailing list