From 173e03d146aff9092a05d1056199e091d7eb8793 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 3 May 2024 22:34:13 +0200 Subject: [PATCH] Blocked user log fix --- ftpCommandElaborate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftpCommandElaborate.c b/ftpCommandElaborate.c index 5c0a177..7395308 100755 --- a/ftpCommandElaborate.c +++ b/ftpCommandElaborate.c @@ -181,7 +181,7 @@ int parseCommandPass(ftpDataType *data, int socketId) char *theLogString[STRING_SZ_LARGE]; memset(theLogString, 0, STRING_SZ_LARGE); - snprintf(theLogString, STRING_SZ_LARGE, "An ip %s has been blacklisted due too many password errors. Trying to login as user: %s ", element.ipAddress, data->clients[socketId].clientIpAddress, data->clients[socketId].login.name.text); + snprintf(theLogString, STRING_SZ_LARGE, "An ip %s has been blacklisted due too many password errors. Trying to login as user: %s ", data->clients[socketId].clientIpAddress, data->clients[socketId].login.name.text); addLog(theLogString, CURRENT_FILE, CURRENT_LINE, CURRENT_FUNC); if (returnCode <= 0)