mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
The error buffer was not getting filled when Curl_wait_for_resolv() fails.
Jeff Pohlmeyer fixed.
This commit is contained in:
parent
46c2bc4bb6
commit
5629eeaec2
@ -466,8 +466,10 @@ CURLcode Curl_wait_for_resolv(struct connectdata *conn,
|
||||
|
||||
if(!conn->async.dns) {
|
||||
/* a name was not resolved */
|
||||
if(conn->async.done)
|
||||
if(conn->async.done) {
|
||||
failf(data, "Could not resolve host: %s", conn->name);
|
||||
rc = CURLE_COULDNT_RESOLVE_HOST;
|
||||
}
|
||||
else
|
||||
rc = CURLE_OPERATION_TIMEDOUT;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user