Commit 62e78264 authored by Nick Mathewson's avatar Nick Mathewson 🦀
Browse files

Free very-old descriptors that we do not want to add. [Backport]

svn:r19059
parent 19431c43
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
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
+1 −0
Original line number Diff line number Diff line
@@ -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;
  }