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