duphandle: use ares_dup()
authorDaniel Stenberg <daniel@haxx.se>
Tue, 21 Sep 2010 14:41:14 +0000 (16:41 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 21 Sep 2010 14:41:14 +0000 (16:41 +0200)
commit19f45eaa799a77d5c67cbefe3342f27774e2e6f8
treeb6657dfd4f0365c9c2ebc0742b39a38296575738
parent70a025f3df42aac0e68e54dddd5b337e149c8d22
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
docs/INTERNALS
lib/easy.c
m4/curl-confopts.m4