mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:51:53 +03:00
duphandle: use ares_dup()
curl_easy_duphandle() was not properly duping the ares channel. The ares_dup() function was introduced in c-ares 1.6.0 so by starting to use this function we also raise the bar and require c-ares >= 1.6.0 (released Dec 9, 2008) for such builds. Reported by: Ning Dong Bug: http://curl.haxx.se/mail/lib-2010-08/0318.html
This commit is contained in:
parent
70a025f3df
commit
19f45eaa79
3 changed files with 5 additions and 3 deletions
|
|
@ -472,6 +472,7 @@ AC_DEFUN([CURL_CHECK_LIB_ARES], [
|
|||
ares_channel channel;
|
||||
ares_cancel(channel); /* added in 1.2.0 */
|
||||
ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
|
||||
ares_dup(&channel, channel); /* added in 1.6.0 */
|
||||
]])
|
||||
],[
|
||||
AC_MSG_RESULT([yes])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue