From: antirez Date: Thu, 5 May 2011 15:52:19 +0000 (+0200) Subject: missing return caused protocol desync in CLUSTER SETSLOT X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/4763ecc9add311467c9c3852a81664a0b3005919 missing return caused protocol desync in CLUSTER SETSLOT --- diff --git a/src/cluster.c b/src/cluster.c index 1d39d3e8..0b55b107 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -1241,6 +1241,7 @@ void clusterCommand(redisClient *c) { server.cluster.importing_slots_from[slot] = NULL; } else { addReplyError(c,"Invalid CLUSTER SETSLOT action or number of arguments"); + return; } clusterSaveConfigOrDie(); addReply(c,shared.ok);