Commit d1387aa6 authored by antirez's avatar antirez
Browse files

It is now possible to disable password authentication via CONFIG SET. Thanks...

It is now possible to disable password authentication via CONFIG SET. Thanks to Jan Oberst. This closes issue #171.
parent 7d31a020
......@@ -366,7 +366,7 @@ void configSetCommand(redisClient *c) {
server.dbfilename = zstrdup(o->ptr);
} else if (!strcasecmp(c->argv[2]->ptr,"requirepass")) {
zfree(server.requirepass);
server.requirepass = zstrdup(o->ptr);
server.requirepass = ((char*)o->ptr)[0] ? zstrdup(o->ptr) : NULL;
} else if (!strcasecmp(c->argv[2]->ptr,"masterauth")) {
zfree(server.masterauth);
server.masterauth = zstrdup(o->ptr);
......
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