From 180611c3e8a713f4b7d0ba3462d215bd632a68ab Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Thu, 6 Jan 2011 23:05:58 +0000 Subject: [PATCH] - bugfix for code compiled in VC++ --- source/shared_lib/sources/feathery_ftp/ftpTargetWin32.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/shared_lib/sources/feathery_ftp/ftpTargetWin32.c b/source/shared_lib/sources/feathery_ftp/ftpTargetWin32.c index 3508ecf7..e04d31f0 100644 --- a/source/shared_lib/sources/feathery_ftp/ftpTargetWin32.c +++ b/source/shared_lib/sources/feathery_ftp/ftpTargetWin32.c @@ -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))) {