diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/connect.c | 5 |
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); |