aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-10-12 11:18:08 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-10-12 11:18:08 +0000
commitb5bbc04ad1fa584b0862925daecfb48dbdcb70c1 (patch)
tree48eacb72f220a1d7d674f0d9fbe8de36484e6b97
parent265c58611fe33b1ebc141a8909d69323421a18bf (diff)
return error properly when a non-blocking connect fails using the multi
interface
-rw-r--r--lib/connect.c2
1 files changed, 2 insertions, 0 deletions
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;
}
/*