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

Jeff Pohlmeyer fixed.
This commit is contained in:
Daniel Stenberg 2003-09-01 08:21:08 +00:00
Родитель 46c2bc4bb6
Коммит 5629eeaec2
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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;