- bugfix for code compiled in VC++

This commit is contained in:
Mark Vejvoda 2011-01-06 23:05:58 +00:00
parent 2956d2c782
commit 180611c3e8

View File

@ -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)))
{