1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s4:LDB TDB index code - reintroduce accidentally removed code part

This was removed by 95d726f301. Sorry.
This commit is contained in:
Matthias Dieter Wallnöfer 2010-03-08 11:43:40 +01:00
parent f8dba773a5
commit 30ff229a3e

View File

@ -1331,7 +1331,9 @@ int ltdb_index_del_value(struct ldb_module *module, struct ldb_dn *dn,
}
j = (unsigned int) i;
memmove(&list->dn[j], &list->dn[j+1], sizeof(list->dn[0])*(list->count - (i+1)));
if (j != list->count - 1) {
memmove(&list->dn[j], &list->dn[j+1], sizeof(list->dn[0])*(list->count - (j+1)));
}
list->count--;
list->dn = talloc_realloc(list, list->dn, struct ldb_val, list->count);