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 48efc25f74
commit 6a3c4ac50a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;