src/server/config/acl.c

changeset 97
09fbefc0e6a9
parent 91
fac51f87def0
child 101
7fbcdbad0baa
--- a/src/server/config/acl.c	Mon Nov 04 10:55:27 2013 +0100
+++ b/src/server/config/acl.c	Sun Aug 17 15:15:32 2014 +0200
@@ -64,7 +64,7 @@
     ACLFile *aclf = p;
     UcxAllocator *mp = aclf->parser.mp;
     
-    if(sstrsuffix(line, sstr("ACL "))) {
+    if(sstrprefix(line, sstr("ACL "))) {
         sstr_t param = sstrsubs(line, 4);
         UcxList *plist = cfg_param_list(param, mp); 
         ACLConfig *acl = OBJ_NEW(mp, ACLConfig);
@@ -92,7 +92,7 @@
         if(type.ptr) {
             acl->type = type;
         }
-    } else if(sstrsuffix(line, sstr("Authenticate "))) {
+    } else if(sstrprefix(line, sstr("Authenticate "))) {
         sstr_t param = sstrsubs(line, 13);
         UcxList *plist = cfg_param_list(param, mp); 
         aclf->cur->authparam = plist;

mercurial