mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 11:42:31 +01:00
- bugfix for code compiled in VC++
This commit is contained in:
parent
2956d2c782
commit
180611c3e8
@ -280,8 +280,7 @@ socket_t ftpEstablishDataConnection(int passive, ip_t *ip, port_t *port, int ses
|
||||
//myAddr.sin_port = htons(0);
|
||||
myAddr.sin_port = htons(ftpGetPassivePort() + sessionId);
|
||||
|
||||
int val = 1;
|
||||
setsockopt(dataSocket, SOL_SOCKET, SO_REUSEADDR, (char *)&val, sizeof(val));
|
||||
setsockopt(dataSocket, SOL_SOCKET, SO_REUSEADDR, (char *)&on, sizeof(on));
|
||||
|
||||
if(bind(dataSocket, (struct sockaddr *)&myAddr, sizeof(myAddr)))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user