diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-03-16 18:48:09 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-03-16 18:48:09 +0000 |
commit | 62e782644f785083b554d22bdb7bd81311652155 (patch) | |
tree | 5d4cf9b2c6f3f8842591663261452ee0f4d72f8c | |
parent | 19431c43c10ac706d3a3cdfc2e57c65c8e2d017c (diff) | |
download | tor-62e782644f785083b554d22bdb7bd81311652155.tar.gz tor-62e782644f785083b554d22bdb7bd81311652155.zip |
Free very-old descriptors that we do not want to add. [Backport]
svn:r19059
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/or/routerlist.c | 1 |
2 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,10 @@ +Changes in version 0.3.0.35 - 2009-??-?? + o Minor bugfixes: + - When starting with a cache over a few days old, do not leak + memory for the obsolete router descriptors in it. Bugfix on + 0.2.1.11-alpha; fixes bug 672. + + Changes in version 0.2.0.34 - 2009-02-08 Tor 0.2.0.34 features several more security-related fixes. You should upgrade, especially if you run an exit relay (remote crash) or a diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 01169d2c58..6aff74084f 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -2867,6 +2867,7 @@ router_add_to_routerlist(routerinfo_t *router, const char **msg, if (!in_consensus && from_cache && router->cache_info.published_on < time(NULL) - OLD_ROUTER_DESC_MAX_AGE) { *msg = "Router descriptor was really old."; + routerinfo_free(router); return -1; } |