aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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;
}
}