diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/acl.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -570,9 +570,12 @@ int ACLCheckCommandPerm(client *c) { break; } } - if (!match) return ACL_DENIED_KEY; + if (!match) { + getKeysFreeResult(keyidx); + return ACL_DENIED_KEY; + } } - getKeysFreeResult(keyidx); + if (keyidx) getKeysFreeResult(keyidx); } /* If we survived all the above checks, the user can execute the |