ITS#8245 Silence warning

This commit is contained in:
Ondřej Kuzník 2020-04-15 15:58:35 +01:00 committed by Quanah Gibson-Mount
parent 8a677f65f0
commit 65d0936811

View File

@ -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;
}