summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2019-10-10 14:55:03 +0200
committerGitHub <noreply@github.com>2019-10-10 14:55:03 +0200
commit363604a27dc322025bb8867aced75184ea846fff (patch)
treea9cfa967fc5e574f583a3c38946522b315a5ad6b
parent1677f4223c6111c5287b58aa171ffc5d5072a47f (diff)
parent1a292e06342963ab1f82adb70637461466264a89 (diff)
downloadredis-363604a27dc322025bb8867aced75184ea846fff.tar.gz
Merge pull request #6437 from OMG-By/redis-omg_by
there should is AUTH && HELLO non authenticated state.
-rw-r--r--src/server.c2
1 files changed, 1 insertions, 1 deletions
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;