aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-12-13 13:47:58 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-12-13 13:47:58 +0000
commit9ae920c1b6b274396128ed54b001b4561a1e708f (patch)
tree974339c7a08c226f43857d14f509daba590a66c8
parentdff406a36022f68d8f64802a8b0c14344851c4bd (diff)
make a little work-around for file:// in _is_connected() and voila, now the
multi interface works with file:// URLs fine (previously it crashed). This won't make it work on Windows though...
-rw-r--r--lib/connect.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/connect.c b/lib/connect.c
index d2080c452..1a4c193eb 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -380,6 +380,11 @@ CURLcode Curl_is_connected(struct connectdata *conn,
return CURLE_OPERATION_TIMEOUTED;
}
}
+ if(conn->protocol & PROT_FILE) {
+ /* we are connected, awesome! */
+ *connected = TRUE;
+ return CURLE_OK;
+ }
/* check for connect without timeout as we want to return immediately */
rc = waitconnect(sockfd, 0);