aboutsummaryrefslogtreecommitdiff
path: root/lib/hostip.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-11-11 22:51:09 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-11-11 22:51:09 +0000
commitca6e77083768858aa34207f8c5dce38b3c05336d (patch)
tree7ef44c0710d0681dba9b444856a539b1bb27df9e /lib/hostip.c
parent775968003c329745be70fddd2427d91be6fd2713 (diff)
The test for DNS cache entries left locked is now only built if
AGGRESIVE_TEST is also defined, as an addition to MALLOCDEBUG. It doesn't work for multi interface usage and should only be used with careful consideration.
Diffstat (limited to 'lib/hostip.c')
-rw-r--r--lib/hostip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index 21b9103dd..ecefef1f7 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -191,7 +191,7 @@ hostcache_prune(curl_hash *hostcache, int cache_timeout, int now)
hostcache_timestamp_remove);
}
-#ifdef MALLOCDEBUG
+#if defined(MALLOCDEBUG) && defined(AGGRESIVE_TEST)
/* Called from Curl_done() to check that there's no DNS cache entry with
a non-zero counter left. */
void Curl_scan_cache_used(void *user, void *ptr)