Commit 2e77c2ee authored by antirez's avatar antirez
Browse files

Fixed issue 23 about AUTH

parent 774e3047
......@@ -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 {
......
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