httpsrr: fix the HTTPS-RR threaded-resolver build combo
Reported-by: Viktor Szakats Fixes #16399 Closes #16404
This commit is contained in:
parent
ee3f657607
commit
c64304e111
@ -64,6 +64,7 @@ struct thread_data {
|
|||||||
#if defined(USE_HTTPSRR) && defined(USE_ARES)
|
#if defined(USE_HTTPSRR) && defined(USE_ARES)
|
||||||
struct Curl_https_rrinfo hinfo;
|
struct Curl_https_rrinfo hinfo;
|
||||||
ares_channel channel;
|
ares_channel channel;
|
||||||
|
int num_pending; /* number of outstanding c-ares requests */
|
||||||
#endif
|
#endif
|
||||||
bool init;
|
bool init;
|
||||||
};
|
};
|
||||||
|
|||||||
@ -187,11 +187,9 @@ void Curl_dnsrec_done_cb(void *arg, ares_status_t status,
|
|||||||
struct Curl_easy *data = arg;
|
struct Curl_easy *data = arg;
|
||||||
CURLcode result = CURLE_OK;
|
CURLcode result = CURLE_OK;
|
||||||
size_t i;
|
size_t i;
|
||||||
#ifdef CURLRES_ARES
|
|
||||||
struct thread_data *res = &data->state.async.thdata;
|
struct thread_data *res = &data->state.async.thdata;
|
||||||
|
|
||||||
res->num_pending--;
|
res->num_pending--;
|
||||||
#endif
|
|
||||||
(void)timeouts;
|
(void)timeouts;
|
||||||
if((ARES_SUCCESS != status) || !dnsrec)
|
if((ARES_SUCCESS != status) || !dnsrec)
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user