diff --git a/src/server.c b/src/server.c index 010a31295..f67175651 100644 --- a/src/server.c +++ b/src/server.c @@ -3376,7 +3376,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;