Corrected: acl was ignored if preacl is empty

This commit is contained in:
z3APA3A 2020-10-28 17:08:12 +03:00
parent cc8d3fc494
commit 7124b4a141

View File

@ -680,7 +680,7 @@ int checkACL2(struct clientparam * param, int pre){
struct ace* acentry;
acentry = pre?param->srv->preacl:param->srv->acl;
if(!acentry) {
if(!acentry && !pre) {
return 0;
}
for(; acentry; acentry = acentry->next) {