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
45ff9f33
Commit
45ff9f33
authored
Jan 09, 2019
by
antirez
Browse files
ACL: ACLCheckUserCredentials() next id should be static.
parent
7fc882c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/acl.c
View file @
45ff9f33
...
...
@@ -102,7 +102,7 @@ int ACLCheckUserCredentials(robj *username, robj *password) {
* are unloaded and later reloaded. */
unsigned
long
ACLGetCommandID
(
const
char
*
cmdname
)
{
static
rax
*
map
=
NULL
;
unsigned
long
nextid
=
0
;
static
unsigned
long
nextid
=
0
;
if
(
map
==
NULL
)
map
=
raxNew
();
void
*
id
=
raxFind
(
map
,(
unsigned
char
*
)
cmdname
,
strlen
(
cmdname
));
...
...
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