Merge pull request #6437 from OMG-By/redis-omg_by

there should is AUTH && HELLO non authenticated state.
This commit is contained in:
Salvatore Sanfilippo 2019-10-10 14:55:03 +02:00 committed by GitHub
commit 363604a27d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;