mirror of
https://github.com/fluencelabs/redis
synced 2025-03-20 01:20:50 +00:00
ACL: fix field name typo causing segfault.
This commit is contained in:
parent
a0a4fb85ff
commit
09391369b8
@ -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_subcommands,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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user