summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-04-23 20:48:14 +0000
committerNick Mathewson <nickm@torproject.org>2008-04-23 20:48:14 +0000
commite14725a577ba37da04e3693bac9f223674b92e08 (patch)
tree3602f0c8975963b8f3d19294f44b34868e703360
parent5dfd0c354f574e05c2a4003592f1c043252040c0 (diff)
downloadtor-e14725a577ba37da04e3693bac9f223674b92e08.tar.gz
tor-e14725a577ba37da04e3693bac9f223674b92e08.zip
r15309@tombo: nickm | 2008-04-23 16:47:17 -0400
Backport: Free baddir and badexit policy lists on exit. fixes bug 672. only affects authorities. svn:r14432
-rw-r--r--ChangeLog4
-rw-r--r--src/or/policies.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 9d92be9397..947158116b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,10 @@ Changes in version 0.2.0.25-rc - 2008-04-23
Otherwise, many BSD-family implementations will crash hard on
startup. Fixes bug 671. Bugfix on 0.2.0.24-rc.
+ o Minor bugfixes
+ - Authorities correctly free policies on bad servers on
+ exit. Fixes bug 672.
+
Changes in version 0.2.0.24-rc - 2008-04-22
o New directory authorities:
diff --git a/src/or/policies.c b/src/or/policies.c
index e28ba3cb48..1222c17413 100644
--- a/src/or/policies.c
+++ b/src/or/policies.c
@@ -922,6 +922,10 @@ policies_free_all(void)
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.");