Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
5dc4fe15
Commit
5dc4fe15
authored
Dec 02, 2016
by
Itamar Haber
Committed by
GitHub
Dec 02, 2016
Browse files
Verify pairs are provided after subcommands
Fixes
https://github.com/antirez/redis/issues/3639
parent
6eb0c52d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_zset.c
View file @
5dc4fe15
...
...
@@ -1521,7 +1521,7 @@ void zaddGenericCommand(client *c, int flags) {
/* After the options, we expect to have an even number of args, since
* we expect any number of score-element pairs. */
elements
=
c
->
argc
-
scoreidx
;
if
(
elements
%
2
)
{
if
(
elements
%
2
||
!
elements
)
{
addReply
(
c
,
shared
.
syntaxerr
);
return
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment