Merge pull request #6437 from OMG-By/redis-omg_by
there should is AUTH && HELLO non authenticated state.
This commit is contained in:
commit
aeaa086f82
@ -3376,7 +3376,7 @@ int processCommand(client *c) {
|
|||||||
!c->authenticated;
|
!c->authenticated;
|
||||||
if (auth_required) {
|
if (auth_required) {
|
||||||
/* AUTH and HELLO are valid even in non authenticated state. */
|
/* 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);
|
flagTransaction(c);
|
||||||
addReply(c,shared.noautherr);
|
addReply(c,shared.noautherr);
|
||||||
return C_OK;
|
return C_OK;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user