Commit 8fc00793 authored by zhaozhao.zz's avatar zhaozhao.zz
Browse files

ACL: check patterns instead of passwords in ACLCheckCommandPerm

parent e545b30f
......@@ -555,7 +555,7 @@ int ACLCheckCommandPerm(client *c) {
for (int j = 0; j < numkeys; j++) {
listIter li;
listNode *ln;
listRewind(u->passwords,&li);
listRewind(u->patterns,&li);
/* Test this key against every pattern. */
int match = 0;
......
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