From ad7ebec24c59a062e575b43a7b3d3d9c614b4933 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 16 Mar 2009 18:47:45 +0000 Subject: Free very-old descriptors that we do not want to add. Fix for bug 672. Backport candidate svn:r19057 --- src/or/routerlist.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; } -- cgit v1.2.3