diff options
author | Neel Chauhan <neel@neelc.org> | 2018-08-08 20:52:57 -0400 |
---|---|---|
committer | Neel Chauhan <neel@neelc.org> | 2018-08-08 20:52:57 -0400 |
commit | a207511bb0cc86b20a5ed682898a74660efdd5b2 (patch) | |
tree | efb1ae4def6ec9fcfc46adebe9fad57e94ca09c1 /src/core | |
parent | 7c052d4ac38605092534e95daf69f208fadcafdc (diff) | |
download | tor-a207511bb0cc86b20a5ed682898a74660efdd5b2.tar.gz tor-a207511bb0cc86b20a5ed682898a74660efdd5b2.zip |
In cell_queues_check_size(), add DNS cache size to total memory allocation
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/or/relay.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/or/relay.c b/src/core/or/relay.c index 62a4bca848..2a6bedcb83 100644 --- a/src/core/or/relay.c +++ b/src/core/or/relay.c @@ -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) { |