From c3562cf13493f0728354d8814fff9cf19912f709 Mon Sep 17 00:00:00 2001 From: omg-by <504094596@qq.com> Date: Thu, 10 Oct 2019 00:43:28 +0800 Subject: [PATCH] there should is AUTH && HELLO non authenticated state. --- src/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.c b/src/server.c index e089865f8..a9b6b650e 100644 --- a/src/server.c +++ b/src/server.c @@ -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;