mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
zset full dump sanitization bug (dup score instead of field) (#8167)
This commit is contained in:
parent
48efc25f74
commit
6a3c4ac50a
@ -1612,7 +1612,7 @@ static int _zsetZiplistValidateIntegrity(unsigned char *p, void *userdata) {
|
|||||||
} *data = userdata;
|
} *data = userdata;
|
||||||
|
|
||||||
/* Even records are field names, add to dict and check that's not a dup */
|
/* 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 char *str;
|
||||||
unsigned int slen;
|
unsigned int slen;
|
||||||
long long vll;
|
long long vll;
|
||||||
|
Loading…
Reference in New Issue
Block a user