]> git.saurik.com Git - redis.git/blobdiff - redis.c
Set the master->slave logical client as authenticated on creation, so that if the...
[redis.git] / redis.c
diff --git a/redis.c b/redis.c
index 60a9232ca3fc90f8fdca5057ec7c1b3308176299..e6afdfcd140cffc415cee723b46f81d10ebeffde 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -5582,6 +5582,7 @@ static int syncWithMaster(void) {
     }
     server.master = createClient(fd);
     server.master->flags |= REDIS_MASTER;
+    server.master->authenticated = 1;
     server.replstate = REDIS_REPL_CONNECTED;
     return REDIS_OK;
 }