]> git.sur5r.net Git - openldap/commitdiff
minor fixes...
authorPierangelo Masarati <ando@openldap.org>
Tue, 13 Feb 2007 23:33:54 +0000 (23:33 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 13 Feb 2007 23:33:54 +0000 (23:33 +0000)
servers/slapd/aci.c

index 86594ef33c14df8437522b981114c1b17ba50f13..2ed91c4935d8901b024005f408dccbc4c89d4d57 100644 (file)
@@ -449,7 +449,7 @@ aci_mask(
           This routine now supports scope={ENTRY,CHILDREN}
           with the semantics:
             - ENTRY applies to "entry" and "subtree";
-            - CHILDREN aplies to "children" and "subtree"
+            - CHILDREN applies to "children" and "subtree"
         */
 
        /* check that the aci has all 5 components */
@@ -1016,7 +1016,7 @@ bv_get_tail(
  *    action    := perms;attrs[[;perms;attrs]...]
  *    perms     := perm[[,perm]...]
  *    perm      := c|s|r|w|x
- *    attrs     := attribute[[,attribute]..]|[all]
+ *    attrs     := attribute[[,attribute]..]|"[all]"
  *    attribute := attributeType|attributeType=attributeValue|attributeType=attributeValuePrefix*
  *    type      := public|users|self|dnattr|group|role|set|set-ref|
  *                 access_id|subtree|onelevel|children
@@ -1545,6 +1545,8 @@ OpenLDAPaciPrettyNormal(
                        freetype = 0;
        char            *ptr;
 
+       BER_BVZERO( out );
+
        if ( BER_BVISEMPTY( val ) ) {
                Debug( LDAP_DEBUG_ACL, "aciPrettyNormal: value is empty\n", 0, 0, 0 );
                return LDAP_INVALID_SYNTAX;