mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
curl_easy_duphandle() works again with ares enabled
This commit is contained in:
parent
84a322ab23
commit
31e9e4bb76
@ -374,6 +374,14 @@ CURL *curl_easy_duphandle(CURL *incurl)
|
|||||||
/* start with clearing the entire new struct */
|
/* start with clearing the entire new struct */
|
||||||
memset(outcurl, 0, sizeof(struct SessionHandle));
|
memset(outcurl, 0, sizeof(struct SessionHandle));
|
||||||
|
|
||||||
|
#ifdef USE_ARES
|
||||||
|
/* If we use ares, we need to setup a new ares channel for the new handle */
|
||||||
|
if(ARES_SUCCESS != ares_init(&outcurl->state.areschannel)) {
|
||||||
|
free(outcurl);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We setup a few buffers we need. We should probably make them
|
* We setup a few buffers we need. We should probably make them
|
||||||
* get setup on-demand in the code, as that would probably decrease
|
* get setup on-demand in the code, as that would probably decrease
|
||||||
|
Loading…
Reference in New Issue
Block a user