diff --git a/src/hyperloglog.c b/src/hyperloglog.c index 49516f82..f4b5bd1c 100644 --- a/src/hyperloglog.c +++ b/src/hyperloglog.c @@ -1121,6 +1121,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;