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