提交 1eceb85e 编写于 作者: A antirez

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.
上级 db6a2e7f
......@@ -345,7 +345,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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册