From b5bbc04ad1fa584b0862925daecfb48dbdcb70c1 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 12 Oct 2002 11:18:08 +0000 Subject: return error properly when a non-blocking connect fails using the multi interface --- lib/connect.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/connect.c') diff --git a/lib/connect.c b/lib/connect.c index 203253500..0a9e97368 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; } /* -- cgit v1.2.3