c-ares httpsrr: fix ifdef

Fix the ifdef const when enabling HTTPSRR with c-ares.

Reported-by: Pavel Kropachev
Ref: #16855
Closes #16861
This commit is contained in:
Stefan Eissing 2025-03-28 15:42:29 +01:00 committed by Daniel Stenberg
parent c8b0f0c9ad
commit 7cb079ad1b
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -833,8 +833,9 @@ struct Curl_addrinfo *Curl_resolver_getaddrinfo(struct Curl_easy *data,
query_completed_cb, data);
}
#endif
#ifdef USE_HTTPSRR_ARES
#ifdef USE_HTTPSRR
{
CURL_TRC_DNS(data, "asyn-ares: fire off query for HTTPSRR");
res->num_pending++; /* one more */
memset(&res->hinfo, 0, sizeof(struct Curl_https_rrinfo));
res->hinfo.port = -1;