aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-11-11 04:19:11 +0000
committerRoger Dingledine <arma@torproject.org>2007-11-11 04:19:11 +0000
commit0d219959569df2cfe933555d9fc9cd8397746e48 (patch)
treefda3db9dedf37de481fb536703d71ba8770bdecd /src
parent2b2d111017f5aef494aa80d81cd86b7cad258630 (diff)
downloadtor-0d219959569df2cfe933555d9fc9cd8397746e48.tar
tor-0d219959569df2cfe933555d9fc9cd8397746e48.tar.gz
another likelier candidate for mike's leak
svn:r12470
Diffstat (limited to 'src')
-rw-r--r--src/or/dns.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/dns.c b/src/or/dns.c
index b9775969a..08a224536 100644
--- a/src/or/dns.c
+++ b/src/or/dns.c
@@ -312,8 +312,8 @@ dns_free_all(void)
tor_free(resolv_conf_fname);
}
-/** Remove every cached_resolve whose <b>expire</b> time is before <b>now</b>
- * from the cache. */
+/** Remove every cached_resolve whose <b>expire</b> time is before or
+ * equal to <b>now</b> from the cache. */
static void
purge_expired_resolves(time_t now)
{
@@ -385,6 +385,7 @@ purge_expired_resolves(time_t now)
/* This should be in state DONE. Make sure it's not in the cache. */
cached_resolve_t *tmp = HT_FIND(cache_map, &cache_root, resolve);
tor_assert(tmp != resolve);
+ /* XXX020 shouldn't we be freeing 'resolve' here? */
}
}