summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-09-21 16:41:14 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-09-21 16:41:14 +0200
commit19f45eaa799a77d5c67cbefe3342f27774e2e6f8 (patch)
treeb6657dfd4f0365c9c2ebc0742b39a38296575738 /m4
parent70a025f3df42aac0e68e54dddd5b337e149c8d22 (diff)
downloadcurl-19f45eaa799a77d5c67cbefe3342f27774e2e6f8.tar.gz
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
Diffstat (limited to 'm4')
-rw-r--r--m4/curl-confopts.m41
1 files changed, 1 insertions, 0 deletions
diff --git a/m4/curl-confopts.m4 b/m4/curl-confopts.m4
index 11fdd5301..bb25bb925 100644
--- a/m4/curl-confopts.m4
+++ b/m4/curl-confopts.m4
@@ -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])