From 1eceb85ebc127480ffe3d80be00e09472fa684ec Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 31 Oct 2011 09:57:06 +0100 Subject: [PATCH 1/1] It is now possible to disable password authentication via CONFIG SET. Thanks to Jan Oberst. This closes issue #171. --- src/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.c b/src/config.c index 789c10fc..6e310701 100644 --- a/src/config.c +++ b/src/config.c @@ -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); -- 2.45.2