Fixed a typo causing segfault on MIGRATE

This commit is contained in:
antirez 2011-10-17 16:39:05 +02:00
parent c0875a77a1
commit bfbc16ae83

View 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);
}