From 528b9cfb587e2a7cc8604340eec7e7ad42369d8a Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 7 Jan 2011 06:26:23 +0000 Subject: [PATCH] - compile fix for win32 VC++ --- source/shared_lib/sources/feathery_ftp/ftpTargetWin32.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/shared_lib/sources/feathery_ftp/ftpTargetWin32.c b/source/shared_lib/sources/feathery_ftp/ftpTargetWin32.c index f4ccb87bb..e4c91b339 100644 --- a/source/shared_lib/sources/feathery_ftp/ftpTargetWin32.c +++ b/source/shared_lib/sources/feathery_ftp/ftpTargetWin32.c @@ -327,6 +327,7 @@ socket_t ftpAcceptDataConnection(socket_t listner) struct sockaddr_in clientinfo; unsigned len; SOCKET dataSocket; + ip_t remoteIP; len = sizeof(clientinfo); @@ -338,7 +339,7 @@ socket_t ftpAcceptDataConnection(socket_t listner) closesocket(listner); // Server-Socket wird nicht mehr gebrauch deshalb schließen - ip_t remoteIP = ntohl(clientinfo.sin_addr.s_addr); + remoteIP = ntohl(clientinfo.sin_addr.s_addr); if(ftpIsValidClient && ftpIsValidClient(remoteIP) == 0) { if(VERBOSE_MODE_ENABLED) printf("Connection with %s is NOT a valid trusted client, dropping connection.\n", inet_ntoa(clientinfo.sin_addr));