mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-10 06:13:19 -05:00
ITS#8245 Do not try to release a NULL entry
This commit is contained in:
parent
8bc0f75093
commit
81b5ca9113
1 changed files with 18 additions and 14 deletions
|
|
@ -1229,13 +1229,15 @@ unique_modify(
|
|||
return rc;
|
||||
}
|
||||
|
||||
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,
|
||||
slap_schema.si_ad_entry, NULL,
|
||||
ACL_MANAGE, NULL ) ) ) {
|
||||
if ( SLAPD_SYNC_IS_SYNCCONN( op->o_connid ) ) {
|
||||
return rc;
|
||||
}
|
||||
if ( 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,
|
||||
slap_schema.si_ad_entry, NULL,
|
||||
ACL_MANAGE, NULL ) ) {
|
||||
overlay_entry_release_ov( op, e, 0, on );
|
||||
return rc;
|
||||
}
|
||||
|
|
@ -1367,13 +1369,15 @@ 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 ) || (
|
||||
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,
|
||||
slap_schema.si_ad_entry, NULL,
|
||||
ACL_MANAGE, NULL ) ) ) {
|
||||
if ( SLAPD_SYNC_IS_SYNCCONN( op->o_connid ) ) {
|
||||
return rc;
|
||||
}
|
||||
if ( 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,
|
||||
slap_schema.si_ad_entry, NULL,
|
||||
ACL_MANAGE, NULL ) ) {
|
||||
overlay_entry_release_ov( op, e, 0, on );
|
||||
return rc;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue