Skip to content

Commit

Permalink
Fix isHLLObjectOrReply() to handle integer encoded strings.
Browse files Browse the repository at this point in the history
Close redis#3766.
  • Loading branch information
antirez authored and GitHubMota committed Jul 25, 2017
1 parent 4275824 commit 9d1fcfb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hyperloglog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9d1fcfb

Please sign in to comment.