From bfbc16ae8321603ce527012f6c33fd7619ad9b09 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 17 Oct 2011 16:39:05 +0200 Subject: [PATCH] Fixed a typo causing segfault on MIGRATE --- src/cluster.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cluster.c b/src/cluster.c index f043d1f8..45f5425a 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -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); }