]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
In cell_queues_check_size(), add DNS cache size to total memory allocation
authorNeel Chauhan <neel@neelc.org>
Thu, 9 Aug 2018 00:52:57 +0000 (20:52 -0400)
committerNeel Chauhan <neel@neelc.org>
Thu, 9 Aug 2018 00:52:57 +0000 (20:52 -0400)
src/core/or/relay.c

index 62a4bca8486a1c2dc521f18cabc164a5b9000fea..2a6bedcb83f6779ef6856eb683375956e012eb93 100644 (file)
@@ -2539,6 +2539,7 @@ cell_queues_check_size(void)
     geoip_client_cache_total_allocation();
   alloc += geoip_client_cache_total;
   const size_t dns_cache_total = dns_cache_total_allocation();
+  alloc += dns_cache_total;
   if (alloc >= get_options()->MaxMemInQueues_low_threshold) {
     last_time_under_memory_pressure = approx_time();
     if (alloc >= get_options()->MaxMemInQueues) {