CURLOPT_DNS_SERVERS: set name servers if possible (fix)

Ensure that CURLE_OK is returned if setting the name servers is successfull.
This commit is contained in:
Jason Glasgow 2011-11-30 23:39:02 -05:00 committed by Daniel Stenberg
parent d81f5ea3e0
commit 62d3652b43
1 changed files with 1 additions and 0 deletions

View File

@ -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;