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
09391369
Commit
09391369
authored
Jan 14, 2019
by
antirez
Browse files
ACL: fix field name typo causing segfault.
parent
a0a4fb85
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/acl.c
View file @
09391369
...
@@ -159,7 +159,7 @@ int ACLSetUser(user *u, const char *op) {
...
@@ -159,7 +159,7 @@ int ACLSetUser(user *u, const char *op) {
}
else
if
(
!
strcasecmp
(
op
,
"allcommands"
)
||
}
else
if
(
!
strcasecmp
(
op
,
"allcommands"
)
||
!
strcasecmp
(
op
,
"+@all"
))
!
strcasecmp
(
op
,
"+@all"
))
{
{
memset
(
u
->
allowed_
sub
commands
,
255
,
sizeof
(
u
->
allowed_commands
));
memset
(
u
->
allowed_commands
,
255
,
sizeof
(
u
->
allowed_commands
));
u
->
flags
|=
USER_FLAG_ALLCOMMANDS
;
u
->
flags
|=
USER_FLAG_ALLCOMMANDS
;
}
else
{
}
else
{
return
C_ERR
;
return
C_ERR
;
...
...
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