mirror of
https://github.com/curl/curl.git
synced 2026-08-05 16:26:15 +03:00
Change the ai_addrlen type of struct addrinfo from size_t to socklen_t, per RFC 3493.
This commit is contained in:
parent
ccfce89423
commit
d2cefc140a
4 changed files with 43 additions and 37 deletions
|
|
@ -713,7 +713,7 @@ singleipconnect(struct connectdata *conn,
|
|||
|
||||
/* Connect TCP sockets, bind UDP */
|
||||
if(conn->socktype == SOCK_STREAM)
|
||||
rc = connect(sockfd, ai->ai_addr, (socklen_t)ai->ai_addrlen);
|
||||
rc = connect(sockfd, ai->ai_addr, ai->ai_addrlen);
|
||||
else
|
||||
rc = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue