singleipconnect() returns a socket descriptor, not a CURLcode (but perhaps
we should make it do that...)
This commit is contained in:
parent
ccfc1ddbef
commit
ae1d6f29d9
@ -645,7 +645,7 @@ singleipconnect(struct connectdata *conn,
|
|||||||
CURLcode res = bindlocal(conn, sockfd);
|
CURLcode res = bindlocal(conn, sockfd);
|
||||||
if(res) {
|
if(res) {
|
||||||
sclose(sockfd); /* close socket and bail out */
|
sclose(sockfd); /* close socket and bail out */
|
||||||
return res;
|
return CURL_SOCKET_BAD;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user