]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
hostip: fix build without threaded-resolver and without DoH
authorDaniel Stenberg <daniel@haxx.se>
Thu, 3 Apr 2025 09:35:06 +0000 (11:35 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 3 Apr 2025 09:52:37 +0000 (11:52 +0200)
Closes #16938

lib/hostip.c

index 26b20574790ee4e3909667d85da49c79a4d17288..bef67c73bc85613f22f365bfdd2cd2642e182931 100644 (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);