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
8a200b04
Unverified
Commit
8a200b04
authored
May 24, 2018
by
Salvatore Sanfilippo
Committed by
GitHub
May 24, 2018
Browse files
Merge pull request #4831 from 0xtonyxia/fix-xadd-arity-check
Bugfix: xadd comand <field,value> arity check
parents
de4b6cb2
07125b8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_stream.c
View file @
8a200b04
...
@@ -1073,7 +1073,7 @@ void xaddCommand(client *c) {
...
@@ -1073,7 +1073,7 @@ void xaddCommand(client *c) {
int
field_pos
=
i
+
1
;
int
field_pos
=
i
+
1
;
/* Check arity. */
/* Check arity. */
if
((
c
->
argc
-
field_pos
)
<
2
||
(
c
->
argc
-
field_pos
%
2
)
==
1
)
{
if
((
c
->
argc
-
field_pos
)
<
2
||
(
(
c
->
argc
-
field_pos
)
%
2
)
==
1
)
{
addReplyError
(
c
,
"wrong number of arguments for XADD"
);
addReplyError
(
c
,
"wrong number of arguments for XADD"
);
return
;
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