Skip to content
Snippets Groups Projects
Commit 5629eeae authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

The error buffer was not getting filled when Curl_wait_for_resolv() fails.

Jeff Pohlmeyer fixed.
parent 46c2bc4b
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment