]> granicus.if.org Git - curl/commit
hostip.c: return immediately from Curl_resolv_timeout() upon expired timeout.
authorYang Tse <yangsita@gmail.com>
Thu, 1 Sep 2011 15:09:46 +0000 (17:09 +0200)
committerYang Tse <yangsita@gmail.com>
Thu, 1 Sep 2011 15:09:46 +0000 (17:09 +0200)
commitf2285a6d399a63fd324bb8c3e90cc4655ef803be
treecdcaa7911c62c38b55bc5f53c463c2fc89f6a08d
parentfdf157abdfd8112b2454bfad7dfd57bb386966c5
hostip.c: return immediately from Curl_resolv_timeout() upon expired timeout.

Ensure existing logic in Curl_resolv_timeout() is not subverted upon getting a
negative timeout from resolve_server(). The timeout in resolve_server() could
be checked to avoid calling Curl_resolv_timeout() with an expired timeout, but
fixing this in this way allows existing logic in resolve_server() to be kept
unchanged.
lib/hostip.c