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:
parent
356fdb0b65
commit
e74e85ee66
@ -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--;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user