]> granicus.if.org Git - curl/commitdiff
make a little work-around for file:// in _is_connected() and voila, now the
authorDaniel Stenberg <daniel@haxx.se>
Fri, 13 Dec 2002 13:47:58 +0000 (13:47 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 13 Dec 2002 13:47:58 +0000 (13:47 +0000)
multi interface works with file:// URLs fine (previously it crashed). This
won't make it work on Windows though...

lib/connect.c

index d2080c4526f52061d10f17aea1d9d0286ce1f55c..1a4c193eb66d2f55cd068e51b11a769fdd759a5a 100644 (file)
@@ -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);