mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
ldb: Use ARRAY_DEL_ELEMENT() in ldb_kv_msg_delete_element()
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
3d9d984944
commit
d45174a060
@ -995,11 +995,7 @@ static int ldb_kv_msg_delete_element(struct ldb_module *module,
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (i<el->num_values-1) {
|
||||
memmove(&el->values[i], &el->values[i+1],
|
||||
sizeof(el->values[i])*
|
||||
(el->num_values-(i+1)));
|
||||
}
|
||||
ARRAY_DEL_ELEMENT(el->values, i, el->num_values);
|
||||
el->num_values--;
|
||||
|
||||
/* per definition we find in a canonicalised message an
|
||||
|
Loading…
x
Reference in New Issue
Block a user