hostip: don't remove DNS entries that are in use
authorRomulo A. Ceccon <romuloceccon@gmail.com>
Tue, 28 Jan 2014 13:59:14 +0000 (11:59 -0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 28 Jan 2014 21:25:48 +0000 (22:25 +0100)
commit31860ab8c83b35b21f331c85e4535b08b13dc8f9
treebe52aab021bcc89f4927a0f5a8bdec6c6046d1a9
parent2070a140fdb15e9d199f5c42867311f958d1c722
hostip: don't remove DNS entries that are in use

hostcache_timestamp_remove() should remove old *unused* entries from the
host cache, but it never checked whether the entry was actually in
use. This complements commit 030a2b8cb.

Bug: http://curl.haxx.se/bug/view.cgi?id=1327
lib/hostip.c