? lib/build4
? lib/build6
? lib/buildares
Index: lib/hostares.c
===================================================================
RCS file: /cvsroot/curl/curl/lib/hostares.c,v
retrieving revision 1.9
diff -u -r1.9 hostares.c
--- lib/hostares.c	6 Oct 2004 07:50:18 -0000	1.9
+++ lib/hostares.c	7 Feb 2005 19:22:25 -0000
@@ -249,7 +249,7 @@
 
     /* close the connection, since we can't return failure here without
        cleaning up this connection properly */
-    Curl_disconnect(conn);
+    conn->bits.close = TRUE;
   }
 
   return rc;
Index: lib/transfer.c
===================================================================
RCS file: /cvsroot/curl/curl/lib/transfer.c,v
retrieving revision 1.266
diff -u -r1.266 transfer.c
--- lib/transfer.c	4 Feb 2005 13:42:41 -0000	1.266
+++ lib/transfer.c	7 Feb 2005 19:22:25 -0000
@@ -2038,6 +2038,8 @@
       if(CURLE_OK == res)
         /* Resolved, continue with the connection */
         res = Curl_async_resolved(*conn);
+      else
+        (void)Curl_disconnect(*conn);
     }
     if(res)
       break;
