mirror of
https://github.com/kingk85/uFTP.git
synced 2025-07-25 13:16:12 +03:00
feat: Missing Reauthorization Requirement After AUTH Command Reset
This commit is contained in:
@ -300,7 +300,6 @@ static int processCommand(int processingElement, ftpDataType *ftpData)
|
||||
IS_NOT_CMD(ftpData->clients[processingElement].theCommandReceived, "QUIT") &&
|
||||
IS_NOT_CMD(ftpData->clients[processingElement].theCommandReceived, "PBSZ") &&
|
||||
IS_NOT_CMD(ftpData->clients[processingElement].theCommandReceived, "PROT") &&
|
||||
IS_NOT_CMD(ftpData->clients[processingElement].theCommandReceived, "CCC") &&
|
||||
IS_NOT_CMD(ftpData->clients[processingElement].theCommandReceived, "AUTH TLS")))
|
||||
{
|
||||
toReturn = notLoggedInMessage(ftpData, processingElement);
|
||||
|
@ -91,6 +91,7 @@ int parseCommandUser(ftpDataType * data, int socketId)
|
||||
returnCode = socketPrintf(data, socketId, "s", "430 User is blocked.\r\n");
|
||||
}
|
||||
|
||||
data->clients[socketId].login.userLoggedIn = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -323,6 +324,8 @@ int parseCommandAuth(ftpDataType *data, int socketId)
|
||||
return FTP_COMMAND_PROCESSED_WRITE_ERROR;
|
||||
}
|
||||
|
||||
data->clients[socketId].login.userLoggedIn = 0;
|
||||
|
||||
returnCode = SSL_set_fd(data->clients[socketId].ssl, data->clients[socketId].socketDescriptor);
|
||||
|
||||
if (returnCode <= 0)
|
||||
|
Reference in New Issue
Block a user