mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05: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) {
|
||||
/* 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;
|
||||
}
|
||||
*dns = conn->async.dns;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user