mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Fixed issue 23 about AUTH
This commit is contained in:
parent
774e304780
commit
2e77c2ee72
2
redis.c
2
redis.c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user