Commit 42271cff authored by antirez's avatar antirez
Browse files

ACL: fix ACLCheckUserCredentials() usage in AUTH.

parent f5d918b2
...@@ -2867,7 +2867,7 @@ int writeCommandsDeniedByDiskError(void) { ...@@ -2867,7 +2867,7 @@ int writeCommandsDeniedByDiskError(void) {
void authCommand(client *c) { void authCommand(client *c) {
if (!server.requirepass) { if (!server.requirepass) {
addReplyError(c,"Client sent AUTH, but no password is set"); addReplyError(c,"Client sent AUTH, but no password is set");
} else if (ACLCheckUserCredentials(NULL,c->argv[1]->ptr)) { } else if (ACLCheckUserCredentials(NULL,c->argv[1]) == C_OK) {
c->authenticated = 1; c->authenticated = 1;
addReply(c,shared.ok); addReply(c,shared.ok);
} else { } else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment