diff options
author | Yang Tse <yangsita@gmail.com> | 2008-02-10 04:20:09 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-02-10 04:20:09 +0000 |
commit | 736af32b498687be9d1cc391e07631f8515e4376 (patch) | |
tree | b8d8dd76752b59165db27eff7377e4b7b7fe2782 /lib | |
parent | 6942d313ffa476a60a3a08aee13df56310a92c5a (diff) |
Bug report #1888932 (http://curl.haxx.se/bug/view.cgi?id=1888932) points
out and provides test program that demonstrates that libcurl might not set
error description message for error CURLE_COULDNT_RESOLVE_HOST for Windows
threaded name resolver builds. Fixed now.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hostthre.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/hostthre.c b/lib/hostthre.c index c165482b6..1e900311a 100644 --- a/lib/hostthre.c +++ b/lib/hostthre.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -682,6 +682,8 @@ CURLcode Curl_wait_for_resolv(struct connectdata *conn, CURLcode Curl_is_resolved(struct connectdata *conn, struct Curl_dns_entry **entry) { + struct SessionHandle *data = conn->data; + *entry = NULL; if(conn->async.done) { @@ -689,6 +691,8 @@ CURLcode Curl_is_resolved(struct connectdata *conn, Curl_destroy_thread_data(&conn->async); if(!conn->async.dns) { TRACE(("Curl_is_resolved(): CURLE_COULDNT_RESOLVE_HOST\n")); + failf(data, "Could not resolve host: %s; %s", + conn->host.name, Curl_strerror(conn, conn->async.status)); return CURLE_COULDNT_RESOLVE_HOST; } *entry = conn->async.dns; |