ACL: check patterns instead of passwords in ACLCheckCommandPerm

This commit is contained in:
zhaozhao.zz 2019-01-25 19:06:18 +08:00
parent e545b30f97
commit 8fc0079366

View File

@ -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;