From 8ec51051c4aeed369c18da0230257647e4c401e2 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Thu, 6 Jan 2011 06:39:58 +0000 Subject: [PATCH] - fixed win32 build --- source/shared_lib/sources/feathery_ftp/ftpTargetWin32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/shared_lib/sources/feathery_ftp/ftpTargetWin32.c b/source/shared_lib/sources/feathery_ftp/ftpTargetWin32.c index 303f2d7a5..3508ecf74 100644 --- a/source/shared_lib/sources/feathery_ftp/ftpTargetWin32.c +++ b/source/shared_lib/sources/feathery_ftp/ftpTargetWin32.c @@ -281,7 +281,7 @@ socket_t ftpEstablishDataConnection(int passive, ip_t *ip, port_t *port, int ses myAddr.sin_port = htons(ftpGetPassivePort() + sessionId); int val = 1; - setsockopt(theServer, SOL_SOCKET, SO_REUSEADDR, (char *)&val, sizeof(val)); + setsockopt(dataSocket, SOL_SOCKET, SO_REUSEADDR, (char *)&val, sizeof(val)); if(bind(dataSocket, (struct sockaddr *)&myAddr, sizeof(myAddr))) {