X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/39d1e350d9fe07babfe0758ce539b085e33206aa..748f206e3d7f66f687f42cfa3341928d5cb548f1:/src/rdb.c?ds=sidebyside diff --git a/src/rdb.c b/src/rdb.c index 8ffd2c28..e0491a72 100644 --- a/src/rdb.c +++ b/src/rdb.c @@ -1039,7 +1039,7 @@ int rdbLoad(char *filename) { return REDIS_ERR; } rdbver = atoi(buf+5); - if (rdbver < 1 || rdbver > 5) { + if (rdbver < 1 || rdbver > REDIS_RDB_VERSION) { fclose(fp); redisLog(REDIS_WARNING,"Can't handle RDB format version %d",rdbver); errno = EINVAL;