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

Fix isHLLObjectOrReply() to handle integer encoded strings.

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