Fix isHLLObjectOrReply() to handle integer encoded strings.

Close #3766.
This commit is contained in:
antirez 2017-07-11 12:44:56 +02:00
parent 0a2b3c6dac
commit 585cdf3a8f

View File

@ -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;