aboutsummaryrefslogtreecommitdiff
path: root/lib/connect.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/connect.c')
-rw-r--r--lib/connect.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/connect.c b/lib/connect.c
index ffce3dad5..65b2878b3 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -288,7 +288,7 @@ static CURLcode bindlocal(struct connectdata *conn,
sizeof(hostent_buf));
*/
failf(data, "Couldn't bind to '%s'", data->set.device);
- return CURLE_HTTP_PORT_FAILED;
+ return CURLE_INTERFACE_FAILED;
}
infof(data, "Bind local address to %s\n", myhost);
@@ -325,7 +325,7 @@ static CURLcode bindlocal(struct connectdata *conn,
#endif
if (CURL_INADDR_NONE == in && -1 == in6) {
failf(data,"couldn't find my own IP address (%s)", myhost);
- return CURLE_HTTP_PORT_FAILED;
+ return CURLE_INTERFACE_FAILED;
} /* end of inet_addr */
if ( h ) {
@@ -334,7 +334,7 @@ static CURLcode bindlocal(struct connectdata *conn,
socksize = addr->ai_addrlen;
}
else
- return CURLE_HTTP_PORT_FAILED;
+ return CURLE_INTERFACE_FAILED;
}
else if(port) {
@@ -370,7 +370,7 @@ static CURLcode bindlocal(struct connectdata *conn,
size = sizeof(add);
if(getsockname(sockfd, (struct sockaddr *) &add, &size) < 0) {
failf(data, "getsockname() failed");
- return CURLE_HTTP_PORT_FAILED;
+ return CURLE_INTERFACE_FAILED;
}
/* We re-use/clobber the port variable here below */
if(((struct sockaddr *)&add)->sa_family == AF_INET)
@@ -393,7 +393,7 @@ static CURLcode bindlocal(struct connectdata *conn,
data->state.os_errno = SOCKERRNO;
failf(data, "bind failure: %s",
Curl_strerror(conn, data->state.os_errno));
- return CURLE_HTTP_PORT_FAILED;
+ return CURLE_INTERFACE_FAILED;
}