mirror of
https://github.com/fluencelabs/redis
synced 2025-03-20 01:20:50 +00:00
Hash: HSTRLEN crash fixed when getting len of int-encoded value
This commit is contained in:
parent
4e54b85a19
commit
0ace1e6d04
@ -159,7 +159,7 @@ size_t hashTypeGetValueLength(robj *o, robj *field) {
|
||||
robj *aux;
|
||||
|
||||
if (hashTypeGetFromHashTable(o, field, &aux) == 0)
|
||||
len = sdslen(aux->ptr);
|
||||
len = stringObjectLen(aux);
|
||||
} else {
|
||||
redisPanic("Unknown hash encoding");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user