return error properly when a non-blocking connect fails using the multi
authorDaniel Stenberg <daniel@haxx.se>
Sat, 12 Oct 2002 11:18:08 +0000 (11:18 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 12 Oct 2002 11:18:08 +0000 (11:18 +0000)
interface

lib/connect.c

index 2032535..0a9e973 100644 (file)
@@ -387,6 +387,8 @@ CURLcode Curl_is_connected(struct connectdata *conn,
       return CURLE_OK;
     }
     /* nope, not connected for real */
+    if(err)
+      return CURLE_COULDNT_CONNECT;
   }
 
   /*