]> git.ipfire.org Git - thirdparty/curl.git/commit
hostip: Fix for builds that disable all asynchronous DNS
authorJay Satiro <raysatiro@yahoo.com>
Thu, 1 Apr 2021 19:15:01 +0000 (15:15 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Fri, 2 Apr 2021 06:38:43 +0000 (02:38 -0400)
commit3085ccfae996bb0fa606d2c7bc6783dc15d76a30
tree32632fbb9edac45ebeb9b940b4b0fcb1424add89
parent06a7f2745e58cd472894a2f4bd706c18a1acd03d
hostip: Fix for builds that disable all asynchronous DNS

- Define Curl_resolver_error function only when USE_CURL_ASYNC.

Prior to this change building curl without an asynchronous resolver
backend (c-ares or threaded) and without DoH (DNS-over-HTTPS, which is
also asynchronous but independent of resolver backend) would cause a
build error since Curl_resolver_error is called by and evaluates
variables only available in asynchronous builds.

Reported-by: Benbuck Nason
Fixes https://github.com/curl/curl/issues/6831
Closes https://github.com/curl/curl/pull/6832
lib/hostip.c