zset full dump sanitization bug (dup score instead of field) (#8167)

This commit is contained in:
Oran Agra 2020-12-09 17:05:05 +02:00 committed by GitHub
parent 11e0c4739b
commit dd98830417

View File

@ -1612,7 +1612,7 @@ static int _zsetZiplistValidateIntegrity(unsigned char *p, void *userdata) {
} *data = userdata;
/* Even records are field names, add to dict and check that's not a dup */
if (((data->count) & 1) == 1) {
if (((data->count) & 1) == 0) {
unsigned char *str;
unsigned int slen;
long long vll;