r15308@tombo: nickm | 2008-04-23 16:46:48 -0400

Free baddir and badexit policy lists on exit.  fixes bug 672. only affects authorities.


svn:r14431
This commit is contained in:
Nick Mathewson 2008-04-23 20:47:53 +00:00
parent 05b184de01
commit d02d6660a8
2 changed files with 6 additions and 0 deletions

View File

@ -42,6 +42,8 @@ Changes in version 0.2.1.1-alpha - 2008-??-??
new entry guard connection. Bugfix on 0.1.2.8-beta; found by lodger. new entry guard connection. Bugfix on 0.1.2.8-beta; found by lodger.
- Detect address changes correctly on non-directory mirror - Detect address changes correctly on non-directory mirror
servers. Fix for bug 652. servers. Fix for bug 652.
- Authorities correctly free policies on bad servers on
exit. Fixes bug 672.
o Minor features: o Minor features:
- Allow separate log levels to be configured for different logging - Allow separate log levels to be configured for different logging

View File

@ -923,6 +923,10 @@ policies_free_all(void)
authdir_reject_policy = NULL; authdir_reject_policy = NULL;
addr_policy_list_free(authdir_invalid_policy); addr_policy_list_free(authdir_invalid_policy);
authdir_invalid_policy = NULL; 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)) if (!HT_EMPTY(&policy_root))
log_warn(LD_MM, "Still had some address policies cached at shutdown."); log_warn(LD_MM, "Still had some address policies cached at shutdown.");