mirror of
https://github.com/curl/curl.git
synced 2026-08-06 05:46:13 +03:00
lib: fix two CURLDEBUG guards to be DEBUGBUILD
Both guard the use of `CURL_DNS_SERVER` debug env. Follow-up todf2b4ccc22#18157 Follow-up to02e9690c3e#17015 Follow-up to59dc9f7e69#13718 Closes #20328
This commit is contained in:
parent
ac6264366f
commit
84ff0f6474
2 changed files with 2 additions and 2 deletions
|
|
@ -836,7 +836,7 @@ static CURLcode async_ares_set_dns_servers(struct Curl_easy *data,
|
|||
const char *servers = data->set.str[STRING_DNS_SERVERS];
|
||||
int ares_result = ARES_SUCCESS;
|
||||
|
||||
#if defined(CURLDEBUG) && defined(HAVE_CARES_SERVERS_CSV)
|
||||
#if defined(DEBUGBUILD) && defined(HAVE_CARES_SERVERS_CSV)
|
||||
if(getenv("CURL_DNS_SERVER"))
|
||||
servers = getenv("CURL_DNS_SERVER");
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -372,7 +372,7 @@ static CURLcode async_rr_start(struct Curl_easy *data, int port)
|
|||
curlx_free(rrname);
|
||||
return CURLE_FAILED_INIT;
|
||||
}
|
||||
#ifdef CURLDEBUG
|
||||
#ifdef DEBUGBUILD
|
||||
if(getenv("CURL_DNS_SERVER")) {
|
||||
const char *servers = getenv("CURL_DNS_SERVER");
|
||||
status = ares_set_servers_ports_csv(thrdd->rr.channel, servers);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue