1
0
mirror of https://github.com/fluencelabs/redis synced 2025-03-18 00:20:50 +00:00

Cluster: range checking in getSlotOrReply() fixed.

See issue  on Github.
This commit is contained in:
antirez 2014-01-15 11:33:41 +01:00
parent fb659cd334
commit 25ddefdea3

@ -2596,7 +2596,7 @@ int getSlotOrReply(redisClient *c, robj *o) {
long long slot;
if (getLongLongFromObject(o,&slot) != REDIS_OK ||
slot < 0 || slot > REDIS_CLUSTER_SLOTS)
slot < 0 || slot >= REDIS_CLUSTER_SLOTS)
{
addReplyError(c,"Invalid or out of range slot");
return -1;