- compile fix for win32 VC++

This commit is contained in:
Mark Vejvoda 2011-01-07 06:26:23 +00:00
parent b30fe62528
commit 528b9cfb58

View File

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