From 1e7e94d7acc49af8ef6b52debaace2da232feb95 Mon Sep 17 00:00:00 2001 From: z3APA3A <3APA3A@3proxy.ru> Date: Wed, 17 Jun 2020 16:09:28 +0300 Subject: [PATCH] corrected 'acl' and 'ext' cach types added with previous commit acl - allows to bind cache entry to ACL to prevent caching authentication for different services ext - allows to cache external address both options are useful with RADIUS --- src/auth.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/auth.c b/src/auth.c index d6770aa..4769dfc 100644 --- a/src/auth.c +++ b/src/auth.c @@ -745,7 +745,7 @@ int cacheauth(struct clientparam * param){ || ((*SAFAMILY(&ac->sa) == *SAFAMILY(¶m->sincr) && !memcmp(SAADDR(&ac->sa), SAADDR(¶m->sincr), SAADDRLEN(&ac->sa))))){ - if(conf.authcachetype&16) { + if(conf.authcachetype&32) { param->sinsl = ac->sinsl; } if(param->username){ @@ -802,7 +802,7 @@ int doauth(struct clientparam * param){ myfree(tmp); } ac->sa = param->sincr; - if(conf.authcachetype&16) { + if(conf.authcachetype&32) { ac->sinsl = param-> sinsl; } @@ -817,7 +817,7 @@ int doauth(struct clientparam * param){ ac->sa = param->sincr; ac->password = NULL; if((conf.authcachetype&4) && param->password) ac->password = mystrdup((char *)param->password); - if(conf.authcachetype&16) { + if(conf.authcachetype&32) { ac->sinsl = param->sinsl; } }