--- d:\before\url.c	2005-09-30 04:00:00.000000000 -0400
+++ d:\after\url.c	2005-10-18 08:34:46.938797400 -0400
@@ -3537,7 +3537,9 @@
       /* Resolve target host right on */
       rc = Curl_resolv(conn, conn->host.name, (int)conn->port, &hostaddr);
       if(rc == CURLRESOLV_PENDING)
+	  {
         *async = TRUE;
+	  }
 
       else if(!hostaddr) {
         failf(data, "Couldn't resolve host '%s'", conn->host.dispname);
@@ -3555,9 +3557,14 @@
       rc = Curl_resolv(conn, conn->proxy.name, (int)conn->port, &hostaddr);
 
       if(rc == CURLRESOLV_PENDING)
+	  {
         *async = TRUE;
+		rc = Curl_wait_for_resolv(conn, &hostaddr);
+	  }
 
-      else if(!hostaddr) {
+//      else if(!hostaddr) 
+	  if(!hostaddr) 
+	  {
         failf(data, "Couldn't resolve proxy '%s'", conn->proxy.dispname);
         result = CURLE_COULDNT_RESOLVE_PROXY;
         /* don't return yet, we need to clean up the timeout first */

