From: Pierangelo Masarati Date: Wed, 14 Apr 2010 17:01:39 +0000 (+0000) Subject: properly initialize acl_attrval_style (ITS#6520) X-Git-Tag: MIGRATION_CVS2GIT~627 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ed92b0285630c9b0209b8ab0a9199896d7059a89;p=openldap properly initialize acl_attrval_style (ITS#6520) --- diff --git a/servers/slapd/aclparse.c b/servers/slapd/aclparse.c index b531990e42..e7f0407fd4 100644 --- a/servers/slapd/aclparse.c +++ b/servers/slapd/aclparse.c @@ -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--; diff --git a/servers/slapd/slap.h b/servers/slapd/slap.h index 7f6314cec6..bda67a8f09 100644 --- a/servers/slapd/slap.h +++ b/servers/slapd/slap.h @@ -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 {