mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
trim use of uninitialized data; please review
This commit is contained in:
parent
d50820cdd6
commit
f38e72b26c
@ -387,7 +387,6 @@ access_allowed_mask(
|
|||||||
char accessmaskbuf[ACCESSMASK_MAXLEN];
|
char accessmaskbuf[ACCESSMASK_MAXLEN];
|
||||||
#endif
|
#endif
|
||||||
slap_mask_t mask;
|
slap_mask_t mask;
|
||||||
slap_control_t control;
|
|
||||||
slap_access_t access_level;
|
slap_access_t access_level;
|
||||||
const char *attr;
|
const char *attr;
|
||||||
int st_same_attr = 0;
|
int st_same_attr = 0;
|
||||||
@ -483,14 +482,12 @@ access_allowed_mask(
|
|||||||
e->e_dn, attr, 0 );
|
e->e_dn, attr, 0 );
|
||||||
ACL_INIT( mask );
|
ACL_INIT( mask );
|
||||||
|
|
||||||
} else if ( control == ACL_BREAK ) {
|
} else {
|
||||||
Debug( LDAP_DEBUG_ACL,
|
Debug( LDAP_DEBUG_ACL,
|
||||||
"=> access_allowed: no more rules\n", 0, 0, 0 );
|
"=> access_allowed: no more rules\n", 0, 0, 0 );
|
||||||
|
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = ACL_GRANT( mask, access );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Debug( LDAP_DEBUG_ACL,
|
Debug( LDAP_DEBUG_ACL,
|
||||||
|
Loading…
Reference in New Issue
Block a user