mirror of
https://github.com/curl/curl.git
synced 2026-08-25 19:43:33 +03:00
make sure the 3rd argument passed to bind() is a socklen_t
This commit is contained in:
parent
4511f7ac50
commit
4c17ba4fc0
2 changed files with 2 additions and 2 deletions
|
|
@ -336,7 +336,7 @@ static CURLcode bindlocal(struct connectdata *conn,
|
|||
Curl_resolv_unlock(data, h);
|
||||
/* we don't need it anymore after this function has returned */
|
||||
|
||||
if( bind(sockfd, addr->ai_addr, addr->ai_addrlen) >= 0) {
|
||||
if( bind(sockfd, addr->ai_addr, (socklen_t)addr->ai_addrlen) >= 0) {
|
||||
/* we succeeded to bind */
|
||||
#ifdef ENABLE_IPV6
|
||||
struct sockaddr_in6 add;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue