aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-04-30 15:16:39 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-04-30 15:16:39 +0000
commitae1d6f29d93ec987d829dd407cb8958c341edfe0 (patch)
tree61376b1ff767b1dbae6bce3a01e109b05543e3d8
parentccfc1ddbef48ae5ebf52d6de8f4cbd1d05927d36 (diff)
singleipconnect() returns a socket descriptor, not a CURLcode (but perhaps
we should make it do that...)
-rw-r--r--lib/connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connect.c b/lib/connect.c
index c7b3c51bb..17a2c94de 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -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;
}
}