]> git.saurik.com Git - redis.git/commitdiff
Fixed Issue 74 (ERR just returned on invalid password), now the error message is...
authorantirez <antirez@gmail.com>
Thu, 29 Oct 2009 10:43:40 +0000 (11:43 +0100)
committerantirez <antirez@gmail.com>
Thu, 29 Oct 2009 10:43:40 +0000 (11:43 +0100)
redis.c

diff --git a/redis.c b/redis.c
index c730c04cdb108b48a15b223deff0195505fd726a..85df6d316a21d2f14bff435b686d09e78bf72a34 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -2721,7 +2721,7 @@ static void authCommand(redisClient *c) {
       addReply(c,shared.ok);
     } else {
       c->authenticated = 0;
-      addReply(c,shared.err);
+      addReplySds(c,sdscatprintf(sdsempty(),"-ERR invalid password\r\n"));
     }
 }