projects
/
platform
/
upstream
/
curl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Revert "Update to 7.40.1"
[platform/upstream/curl.git]
/
lib
/
hostip.c
diff --git
a/lib/hostip.c
b/lib/hostip.c
index
5837e64
..
61d238a
100644
(file)
--- a/
lib/hostip.c
+++ b/
lib/hostip.c
@@
-237,7
+237,7
@@
hostcache_timestamp_remove(void *datap, void *hc)
(struct hostcache_prune_data *) datap;
struct Curl_dns_entry *c = (struct Curl_dns_entry *) hc;
- return (data->now - c->timestamp >= data->cache_timeout);
+ return
!c->inuse &&
(data->now - c->timestamp >= data->cache_timeout);
}
/*