From 7124b4a14187b51fb3f3e57bce7d33891068137f Mon Sep 17 00:00:00 2001 From: z3APA3A <3APA3A@3proxy.ru> Date: Wed, 28 Oct 2020 17:08:12 +0300 Subject: [PATCH] Corrected: acl was ignored if preacl is empty --- src/auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth.c b/src/auth.c index 1ccb802..0ee9fcd 100644 --- a/src/auth.c +++ b/src/auth.c @@ -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) {