Commit 45ff9f33 authored by antirez's avatar antirez
Browse files

ACL: ACLCheckUserCredentials() next id should be static.

parent 7fc882c5
......@@ -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));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment