summaryrefslogtreecommitdiff
path: root/lib/asyn-ares.c
diff options
context:
space:
mode:
authorJason Glasgow <jglasgow@chromium.org>2011-11-30 23:39:02 -0500
committerDaniel Stenberg <daniel@haxx.se>2011-12-02 21:54:15 +0100
commit62d3652b43124cb1d9b962acba05b41cd61f9343 (patch)
treec7fc149ea2fe0996d550e983391423e13bc39512 /lib/asyn-ares.c
parentd81f5ea3e0a5f9a532fcf685898e041fafa93a5b (diff)
downloadcurl-62d3652b43124cb1d9b962acba05b41cd61f9343.tar.gz
CURLOPT_DNS_SERVERS: set name servers if possible (fix)
Ensure that CURLE_OK is returned if setting the name servers is successfull.
Diffstat (limited to 'lib/asyn-ares.c')
-rw-r--r--lib/asyn-ares.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/asyn-ares.c b/lib/asyn-ares.c
index 0b454849d..1028583ca 100644
--- a/lib/asyn-ares.c
+++ b/lib/asyn-ares.c
@@ -610,6 +610,7 @@ CURLcode Curl_set_dns_servers(struct SessionHandle *data,
int ares_result = ares_set_servers_csv(data->state.resolver, servers);
switch(ares_result) {
case ARES_SUCCESS:
+ result = CURLE_OK;
break;
case ARES_ENOMEM:
result = CURLE_OUT_OF_MEMORY;