Initialize RedisModuleDigest with zeroes (#8731)
In case the module's digest function doesn't modify 'md' it'll contain garbage and result in wrong DEBUG DIGEST
This commit is contained in:
parent
2c120af61e
commit
68ba4d43ac
@ -249,7 +249,7 @@ void xorObjectDigest(redisDb *db, robj *keyobj, unsigned char *digest, robj *o)
|
|||||||
}
|
}
|
||||||
streamIteratorStop(&si);
|
streamIteratorStop(&si);
|
||||||
} else if (o->type == OBJ_MODULE) {
|
} else if (o->type == OBJ_MODULE) {
|
||||||
RedisModuleDigest md;
|
RedisModuleDigest md = {{0},{0}};
|
||||||
moduleValue *mv = o->ptr;
|
moduleValue *mv = o->ptr;
|
||||||
moduleType *mt = mv->type;
|
moduleType *mt = mv->type;
|
||||||
moduleInitDigestContext(md);
|
moduleInitDigestContext(md);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user