mirror of
https://github.com/curl/curl.git
synced 2026-07-08 06:27:20 +03:00
pass an 'int' as the third argument to bind()
This commit is contained in:
parent
fe37fb5921
commit
0077b9c0a2
1 changed files with 1 additions and 1 deletions
|
|
@ -1169,7 +1169,6 @@ CURLcode ftp_use_port(struct connectdata *conn)
|
|||
struct sockaddr_in sa;
|
||||
struct hostent *h=NULL;
|
||||
char *hostdataptr=NULL;
|
||||
size_t size;
|
||||
unsigned short porttouse;
|
||||
char myhost[256] = "";
|
||||
|
||||
|
|
@ -1193,6 +1192,7 @@ CURLcode ftp_use_port(struct connectdata *conn)
|
|||
|
||||
if ( h ) {
|
||||
if( (portsock = socket(AF_INET, SOCK_STREAM, 0)) >= 0 ) {
|
||||
int size;
|
||||
|
||||
/* we set the secondary socket variable to this for now, it
|
||||
is only so that the cleanup function will close it in case
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue