- compile fix for win32 VC++
This commit is contained in:
parent
b30fe62528
commit
528b9cfb58
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue
Block a user