Commit 0ace1e6d authored by antirez's avatar antirez
Browse files

Hash: HSTRLEN crash fixed when getting len of int-encoded value

parent 4e54b85a
......@@ -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");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment