From b5bbc04ad1fa584b0862925daecfb48dbdcb70c1 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 12 Oct 2002 11:18:08 +0000 Subject: [PATCH] return error properly when a non-blocking connect fails using the multi interface --- lib/connect.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/connect.c b/lib/connect.c index 2032535..0a9e973 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -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; } /* -- 2.7.4