diff options
author | antirez <antirez@gmail.com> | 2017-11-09 12:04:26 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2017-12-01 10:24:24 +0100 |
commit | 020fe26bd6300a153dc6a02e3411f65af7310118 (patch) | |
tree | 2c176a999b12b053803dca4f86b95ac8693a4ea2 /src | |
parent | abab0b7817e48cb1ab0aaec6fff35890000396c5 (diff) | |
download | redis-020fe26bd6300a153dc6a02e3411f65af7310118.tar.gz |
Streams: fix COUNT parsing, issue #4433.
Diffstat (limited to 'src')
-rw-r--r-- | src/t_stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/t_stream.c b/src/t_stream.c index 7838b92b0..61b229a5c 100644 --- a/src/t_stream.c +++ b/src/t_stream.c @@ -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; |