mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
Michael Benedict brought a fix that fills in the errorbuffer properly
when ares fails to resolve a name. This was fixed before but somehow has fallen out again!
This commit is contained in:
parent
55c015c136
commit
8e73e55336
@ -151,8 +151,11 @@ CURLcode Curl_is_resolved(struct connectdata *conn,
|
|||||||
|
|
||||||
if(conn->async.done) {
|
if(conn->async.done) {
|
||||||
/* we're done, kill the ares handle */
|
/* we're done, kill the ares handle */
|
||||||
if(!conn->async.dns)
|
if(!conn->async.dns) {
|
||||||
|
failf(data, "Could not resolve host: %s (%s)", conn->name,
|
||||||
|
ares_strerror(conn->async.status));
|
||||||
return CURLE_COULDNT_RESOLVE_HOST;
|
return CURLE_COULDNT_RESOLVE_HOST;
|
||||||
|
}
|
||||||
*dns = conn->async.dns;
|
*dns = conn->async.dns;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user