Streams: fix COUNT parsing, issue #4433.

This commit is contained in:
antirez 2017-11-09 12:04:26 +01:00
parent abab0b7817
commit 020fe26bd6

View File

@ -785,7 +785,7 @@ void xrangeCommand(client *c) {
if (streamParseIDOrReply(c,c->argv[3],&endid,UINT64_MAX) == C_ERR) return;
/* Parse the COUNT option if any. */
if (c->argc > 4) {
if (c->argc > 5) {
if (strcasecmp(c->argv[4]->ptr,"COUNT") == 0) {
if (getLongLongFromObjectOrReply(c,c->argv[5],&count,NULL) != C_OK)
return;