Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
42271cff
You need to sign in or sign up before continuing.
Commit
42271cff
authored
Jan 09, 2019
by
antirez
Browse files
ACL: fix ACLCheckUserCredentials() usage in AUTH.
parent
f5d918b2
Changes
1
Show whitespace changes
Inline
Side-by-side
src/server.c
View file @
42271cff
...
...
@@ -2867,7 +2867,7 @@ int writeCommandsDeniedByDiskError(void) {
void authCommand(client *c) {
if (!server.requirepass) {
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;
addReply(c,shared.ok);
} else {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment