]> granicus.if.org Git - curl/commitdiff
singleipconnect() returns a socket descriptor, not a CURLcode (but perhaps
authorDaniel Stenberg <daniel@haxx.se>
Sat, 30 Apr 2005 15:16:39 +0000 (15:16 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 30 Apr 2005 15:16:39 +0000 (15:16 +0000)
we should make it do that...)

lib/connect.c

index c7b3c51bbb1a9c9bf6632699dc8a4166a4b842c1..17a2c94dec311b9690f182e023b2942c5c15d103 100644 (file)
@@ -645,7 +645,7 @@ singleipconnect(struct connectdata *conn,
     CURLcode res = bindlocal(conn, sockfd);
     if(res) {
       sclose(sockfd); /* close socket and bail out */
-      return res;
+      return CURL_SOCKET_BAD;
     }
   }