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

dsdb: Use ARRAY_DEL_ELEMENT() in dirsync_filter_entry()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Volker Lendecke 2020-03-26 11:02:02 +01:00 committed by Ralph Boehme
parent 356fdb0b65
commit e74e85ee66

View File

@ -604,11 +604,10 @@ skip:
if (dsc->linkIncrVal == false) {
if (flags & DSDB_RMD_FLAG_DELETED) {
if (k < (el->num_values - 1)) {
memmove(el->values + k,
el->values + (k + 1),
((el->num_values - 1) - k)*sizeof(*el->values));
}
ARRAY_DEL_ELEMENT(
el->values,
k,
el->num_values);
el->num_values--;
}
}