]> git.saurik.com Git - redis.git/commitdiff
Fixed a typo causing segfault on MIGRATE
authorantirez <antirez@gmail.com>
Mon, 17 Oct 2011 14:39:05 +0000 (16:39 +0200)
committerantirez <antirez@gmail.com>
Mon, 17 Oct 2011 14:39:05 +0000 (16:39 +0200)
src/cluster.c

index f043d1f83cec4837733a3214626ed98ff3959488..45f5425a4884a5afedfe2a38edbe6db96fa448b2 100644 (file)
@@ -1602,7 +1602,7 @@ void migrateCommand(redisClient *c) {
             server.dirty++;
 
             /* Translate MIGRATE as DEL for replication/AOF. */
-            aux = createStringObject("DEL",2);
+            aux = createStringObject("DEL",3);
             rewriteClientCommandVector(c,2,aux,c->argv[3]);
             decrRefCount(aux);
         }