singleipconnect() returns a socket descriptor, not a CURLcode (but perhaps
we should make it do that...)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user