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
2e77c2ee
Commit
2e77c2ee
authored
Apr 02, 2009
by
antirez
Browse files
Fixed issue 23 about AUTH
parent
774e3047
Changes
1
Show whitespace changes
Inline
Side-by-side
redis.c
View file @
2e77c2ee
...
...
@@ -2009,7 +2009,7 @@ eoferr: /* unexpected end of file is handled here with a fatal exit */
/*================================== Commands =============================== */
static void authCommand(redisClient *c) {
if (!strcmp(c->argv[1]->ptr, server.requirepass)) {
if (
!server.requirepass ||
!strcmp(c->argv[1]->ptr, server.requirepass)) {
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