there should is AUTH && HELLO non authenticated state.

This commit is contained in:
omg-by 2019-10-10 00:43:28 +08:00
parent a92921da13
commit 1a292e0634

View File

@ -3366,7 +3366,7 @@ int processCommand(client *c) {
!c->authenticated;
if (auth_required) {
/* AUTH and HELLO are valid even in non authenticated state. */
if (c->cmd->proc != authCommand || c->cmd->proc == helloCommand) {
if (c->cmd->proc != authCommand && c->cmd->proc != helloCommand) {
flagTransaction(c);
addReply(c,shared.noautherr);
return C_OK;