mirror of
https://github.com/curl/curl.git
synced 2025-04-24 16:40:32 +08:00
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:
parent
d81f5ea3e0
commit
62d3652b43
@ -610,6 +610,7 @@ CURLcode Curl_set_dns_servers(struct SessionHandle *data,
|
|||||||
int ares_result = ares_set_servers_csv(data->state.resolver, servers);
|
int ares_result = ares_set_servers_csv(data->state.resolver, servers);
|
||||||
switch(ares_result) {
|
switch(ares_result) {
|
||||||
case ARES_SUCCESS:
|
case ARES_SUCCESS:
|
||||||
|
result = CURLE_OK;
|
||||||
break;
|
break;
|
||||||
case ARES_ENOMEM:
|
case ARES_ENOMEM:
|
||||||
result = CURLE_OUT_OF_MEMORY;
|
result = CURLE_OUT_OF_MEMORY;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user