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
74b7afdf
Commit
74b7afdf
authored
Jan 31, 2019
by
antirez
Browse files
ACL: check arity of LIST / USERS subcommand.
parent
bc9b118e
Changes
1
Show whitespace changes
Inline
Side-by-side
src/acl.c
View file @
74b7afdf
...
@@ -973,7 +973,9 @@ void aclCommand(client *c) {
...
@@ -973,7 +973,9 @@ void aclCommand(client *c) {
addReplyBulkCBuffer
(
c
,
thispat
,
sdslen
(
thispat
));
addReplyBulkCBuffer
(
c
,
thispat
,
sdslen
(
thispat
));
}
}
}
}
}
else
if
(
!
strcasecmp
(
sub
,
"list"
)
||
!
strcasecmp
(
sub
,
"users"
))
{
}
else
if
((
!
strcasecmp
(
sub
,
"list"
)
||
!
strcasecmp
(
sub
,
"users"
))
&&
c
->
argc
==
2
)
{
int
justnames
=
!
strcasecmp
(
sub
,
"users"
);
int
justnames
=
!
strcasecmp
(
sub
,
"users"
);
addReplyArrayLen
(
c
,
raxSize
(
Users
));
addReplyArrayLen
(
c
,
raxSize
(
Users
));
raxIterator
ri
;
raxIterator
ri
;
...
...
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