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
496497f8
Commit
496497f8
authored
Jan 23, 2019
by
zhaozhao.zz
Browse files
ACL: fix null pointer in getuser
parent
711e514e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/acl.c
View file @
496497f8
...
...
@@ -560,6 +560,11 @@ void aclCommand(client *c) {
}
}
else
if
(
!
strcasecmp
(
sub
,
"getuser"
)
&&
c
->
argc
==
3
)
{
user
*
u
=
ACLGetUserByName
(
c
->
argv
[
2
]
->
ptr
,
sdslen
(
c
->
argv
[
2
]
->
ptr
));
if
(
u
==
NULL
)
{
addReplyNull
(
c
);
return
;
}
addReplyMapLen
(
c
,
2
);
/* Flags */
...
...
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