From: Daniel Stenberg Date: Sat, 12 Oct 2002 11:18:08 +0000 (+0000) Subject: return error properly when a non-blocking connect fails using the multi X-Git-Tag: curl-7_10_2~70 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b5bbc04ad1fa584b0862925daecfb48dbdcb70c1;p=thirdparty%2Fcurl.git return error properly when a non-blocking connect fails using the multi interface --- diff --git a/lib/connect.c b/lib/connect.c index 203253500c..0a9e973683 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; } /*