mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
ITS#8245 Silence warning
This commit is contained in:
parent
8a677f65f0
commit
65d0936811
@ -1045,11 +1045,11 @@ unique_add(
|
||||
Debug(LDAP_DEBUG_TRACE, "==> unique_add <%s>\n",
|
||||
op->o_req_dn.bv_val );
|
||||
|
||||
if ( SLAPD_SYNC_IS_SYNCCONN( op->o_connid ) ||
|
||||
if ( SLAPD_SYNC_IS_SYNCCONN( op->o_connid ) || (
|
||||
get_relax(op) > SLAP_CONTROL_IGNORED
|
||||
&& access_allowed ( op, op->ora_e,
|
||||
&& access_allowed( op, op->ora_e,
|
||||
slap_schema.si_ad_entry, NULL,
|
||||
ACL_MANAGE, NULL ) ) {
|
||||
ACL_MANAGE, NULL ) ) ) {
|
||||
return rc;
|
||||
}
|
||||
|
||||
@ -1180,13 +1180,13 @@ unique_modify(
|
||||
return rc;
|
||||
}
|
||||
|
||||
if ( SLAPD_SYNC_IS_SYNCCONN( op->o_connid ) ||
|
||||
if ( SLAPD_SYNC_IS_SYNCCONN( op->o_connid ) || (
|
||||
get_relax(op) > SLAP_CONTROL_IGNORED
|
||||
&& overlay_entry_get_ov(op, &op->o_req_ndn, NULL, NULL, 0, &e, on) == LDAP_SUCCESS
|
||||
&& e
|
||||
&& access_allowed ( op, e,
|
||||
&& access_allowed( op, e,
|
||||
slap_schema.si_ad_entry, NULL,
|
||||
ACL_MANAGE, NULL ) ) {
|
||||
ACL_MANAGE, NULL ) ) ) {
|
||||
overlay_entry_release_ov( op, e, 0, on );
|
||||
return rc;
|
||||
}
|
||||
@ -1301,13 +1301,13 @@ unique_modrdn(
|
||||
Debug(LDAP_DEBUG_TRACE, "==> unique_modrdn <%s> <%s>\n",
|
||||
op->o_req_dn.bv_val, op->orr_newrdn.bv_val );
|
||||
|
||||
if ( SLAPD_SYNC_IS_SYNCCONN( op->o_connid ) ||
|
||||
if ( SLAPD_SYNC_IS_SYNCCONN( op->o_connid ) || (
|
||||
get_relax(op) > SLAP_CONTROL_IGNORED
|
||||
&& overlay_entry_get_ov(op, &op->o_req_ndn, NULL, NULL, 0, &e, on) == LDAP_SUCCESS
|
||||
&& e
|
||||
&& access_allowed ( op, e,
|
||||
&& access_allowed( op, e,
|
||||
slap_schema.si_ad_entry, NULL,
|
||||
ACL_MANAGE, NULL ) ) {
|
||||
ACL_MANAGE, NULL ) ) ) {
|
||||
overlay_entry_release_ov( op, e, 0, on );
|
||||
return rc;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user