Commit 5aa25250 authored by antirez's avatar antirez
Browse files

Fix isHLLObjectOrReply() to handle integer encoded strings.

Close #3766.
parent 7018d27d
......@@ -1128,6 +1128,7 @@ int isHLLObjectOrReply(client *c, robj *o) {
if (checkType(c,o,OBJ_STRING))
return C_ERR; /* Error already sent. */
if (!sdsEncodedObject(o)) goto invalid;
if (stringObjectLen(o) < sizeof(*hdr)) goto invalid;
hdr = o->ptr;
......
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