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

This commit is contained in:
antirez 2015-02-27 15:37:04 +01:00
parent 4e54b85a19
commit 0ace1e6d04

View File

@ -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");
}