summaryrefslogtreecommitdiff
path: root/src/cluster.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2011-10-17 16:39:05 +0200
committerantirez <antirez@gmail.com>2011-10-17 16:39:05 +0200
commitbfbc16ae8321603ce527012f6c33fd7619ad9b09 (patch)
treef1dc0eb378feb8e92111f67fce29549fc5715bfd /src/cluster.c
parentc0875a77a14d417f76b4419127733929ace587ee (diff)
downloadredis-bfbc16ae8321603ce527012f6c33fd7619ad9b09.tar.gz
Fixed a typo causing segfault on MIGRATE
Diffstat (limited to 'src/cluster.c')
-rw-r--r--src/cluster.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cluster.c b/src/cluster.c
index f043d1f83..45f5425a4 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);
}