hostip: fix build without threaded-resolver and without DoH

Closes #16938
This commit is contained in:
Daniel Stenberg 2025-04-03 11:35:06 +02:00
parent b56b0c078e
commit 8f496d05b6
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -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);