]> granicus.if.org Git - curl/commit
hostip: don't prune DNS cache entries that are in use
authorDaniel Stenberg <daniel@haxx.se>
Sun, 24 Nov 2013 22:42:54 +0000 (23:42 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 24 Nov 2013 23:10:23 +0000 (00:10 +0100)
commit030a2b8cb8c4f1d03af6f6e6a3aa3a5a1db5f5a7
treefc567c20a0d359be2ba9f8e9a2dcc25fff07c722
parentedce855943d3654b259fbb5366fea4fbb40bc86f
hostip: don't prune DNS cache entries that are in use

When adding entries to the DNS cache with CURLOPT_RESOLVE, they are
marked 'inuse' forever to prevent them from ever being removed in normal
operations. Still, the code that pruned out-of-date DNS entries didn't
care for the 'inuse' struct field and pruned it anyway!

Reported-by: Romulo A. Ceccon
Bug: http://curl.haxx.se/bug/view.cgi?id=1303
lib/hostip.c