]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
another likelier candidate for mike's leak
authorRoger Dingledine <arma@torproject.org>
Sun, 11 Nov 2007 04:19:11 +0000 (04:19 +0000)
committerRoger Dingledine <arma@torproject.org>
Sun, 11 Nov 2007 04:19:11 +0000 (04:19 +0000)
svn:r12470

src/or/dns.c

index b9775969a7e2138cf1768a497d92b636480dc4e7..08a2245367feed7a6a141df73b31d392c27a1ff8 100644 (file)
@@ -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? */
     }
   }