]> git.sur5r.net Git - openldap/commitdiff
FIx rev 1.207, ACL parsing
authorHoward Chu <hyc@openldap.org>
Mon, 1 May 2006 23:36:38 +0000 (23:36 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 1 May 2006 23:36:38 +0000 (23:36 +0000)
servers/slapd/bconfig.c

index 09e21cdff879cc6e0c9b06af8f8e84eb8ab52303..ff9805459bbc35edbb045ea14404e98ec07d30e2 100644 (file)
@@ -1246,14 +1246,15 @@ config_generic(ConfigArgs *c) {
 
                case CFG_ACL:
                        /* Don't append to the global ACL if we're on a specific DB */
+                       i = c->valx;
                        if ( c->be != frontendDB && frontendDB->be_acl && c->valx == -1 ) {
                                AccessControl *a;
-                               c->valx = 0;
+                               i = 0;
                                for ( a=c->be->be_acl; a && a != frontendDB->be_acl;
                                        a = a->acl_next )
-                                       c->valx++;
+                                       i++;
                        }
-                       if ( parse_acl(c->be, c->fname, c->lineno, c->argc, c->argv, c->valx ) ) {
+                       if ( parse_acl(c->be, c->fname, c->lineno, c->argc, c->argv, i ) ) {
                                return 1;
                        }
                        break;