diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-03-16 18:47:45 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-03-16 18:47:45 +0000 |
commit | ad7ebec24c59a062e575b43a7b3d3d9c614b4933 (patch) | |
tree | c9a73a365cec8d45a4622db2de83869f08b92495 /src | |
parent | a331f451d04a736b6a42c236bd84dcd390a88c60 (diff) | |
download | tor-ad7ebec24c59a062e575b43a7b3d3d9c614b4933.tar tor-ad7ebec24c59a062e575b43a7b3d3d9c614b4933.tar.gz |
Free very-old descriptors that we do not want to add. Fix for bug 672. Backport candidate
svn:r19057
Diffstat (limited to 'src')
-rw-r--r-- | src/or/routerlist.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index a606d57e2..947e90898 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -3075,6 +3075,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 ROUTER_WAS_NOT_NEW; } |