mirror of
https://github.com/curl/curl.git
synced 2026-07-15 21:07:18 +03:00
hostip: fix build without threaded-resolver and without DoH
Closes #16938
This commit is contained in:
parent
b56b0c078e
commit
8f496d05b6
1 changed files with 5 additions and 1 deletions
|
|
@ -932,7 +932,11 @@ enum resolve_t Curl_resolv_timeout(struct Curl_easy *data,
|
|||
else
|
||||
timeout = (timeoutms > LONG_MAX) ? LONG_MAX : (long)timeoutms;
|
||||
|
||||
if(!timeout || data->set.doh)
|
||||
if(!timeout
|
||||
#ifndef CURL_DISABLE_DOH
|
||||
|| data->set.doh
|
||||
#endif
|
||||
)
|
||||
/* USE_ALARM_TIMEOUT defined, but no timeout actually requested or resolve
|
||||
done using DoH */
|
||||
return Curl_resolv(data, hostname, port, TRUE, entry);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue