properly initialize acl_attrval_style (ITS#6520)

This commit is contained in:
Pierangelo Masarati 2010-04-14 17:01:39 +00:00
parent 68ce33cd77
commit ed92b02856
2 changed files with 4 additions and 1 deletions

View 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--;

View 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 {