]> granicus.if.org Git - curl/commitdiff
James Bursa changed two error message to use the display-name instead of the
authorDaniel Stenberg <daniel@haxx.se>
Fri, 7 May 2004 18:56:33 +0000 (18:56 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 7 May 2004 18:56:33 +0000 (18:56 +0000)
internally-used name.

lib/hostares.c

index dcc94a0a4c47d069eccfd605d2a437503938343b..f0e98ad3542c76f2b5379d0bf48234a1ed9ba9d4 100644 (file)
@@ -236,11 +236,11 @@ CURLcode Curl_wait_for_resolv(struct connectdata *conn,
   if(!conn->async.dns) {
     /* a name was not resolved */
     if((timeout < 0) || (conn->async.status == ARES_ETIMEOUT)) {
-      failf(data, "Resolving host timed out: %s", conn->host.name);
+      failf(data, "Resolving host timed out: %s", conn->host.dispname);
       rc = CURLE_OPERATION_TIMEDOUT;
     }
     else if(conn->async.done) {
-      failf(data, "Could not resolve host: %s (%s)", conn->host.name,
+      failf(data, "Could not resolve host: %s (%s)", conn->host.dispname,
             ares_strerror(conn->async.status));
       rc = CURLE_COULDNT_RESOLVE_HOST;
     }