1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-22 02:50:28 +03:00

s4-dsdb: handle links with no backlinks in replmd_delete

This commit is contained in:
Andrew Tridgell 2009-12-17 23:50:41 +11:00
parent 5eefff915e
commit e4a6f5c8b8

View File

@ -2038,10 +2038,9 @@ static int replmd_delete_remove_link(struct ldb_module *module,
msg->dn = dsdb_dn->dn;
if (sa->linkID & 1) {
target_attr = dsdb_attribute_by_linkID(schema, sa->linkID - 1);
} else {
target_attr = dsdb_attribute_by_linkID(schema, sa->linkID + 1);
target_attr = dsdb_attribute_by_linkID(schema, sa->linkID ^ 1);
if (target_attr == NULL) {
continue;
}
ret = ldb_msg_add_empty(msg, target_attr->lDAPDisplayName, LDB_FLAG_MOD_DELETE, &el2);