]> git.sur5r.net Git - openldap/commitdiff
properly initialize acl_attrval_style (ITS#6520)
authorPierangelo Masarati <ando@openldap.org>
Wed, 14 Apr 2010 17:01:39 +0000 (17:01 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 14 Apr 2010 17:01:39 +0000 (17:01 +0000)
servers/slapd/aclparse.c
servers/slapd/slap.h

index b531990e42a7fc1833b29d514932119346e60eef..e7f0407fd40af2fd191084c072dba2b3e4338b23 100644 (file)
@@ -344,6 +344,7 @@ parse_acl(
                                goto fail;
                        }
                        a = (AccessControl *) ch_calloc( 1, sizeof(AccessControl) );
+                       a->acl_attrval_style = ACL_STYLE_NONE;
                        for ( ++i; i < argc; i++ ) {
                                if ( strcasecmp( argv[i], "by" ) == 0 ) {
                                        i--;
index 7f6314cec6278e6019a41a9b3e7f04c68b052dc1..bda67a8f0906ed13192c953cd3d5b309742112df 100644 (file)
@@ -1285,7 +1285,9 @@ typedef enum slap_style_e {
        ACL_STYLE_SELF,
        ACL_STYLE_IP,
        ACL_STYLE_IPV6,
-       ACL_STYLE_PATH
+       ACL_STYLE_PATH,
+
+       ACL_STYLE_NONE
 } slap_style_t;
 
 typedef struct AuthorizationInformation {