mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
pdb: Slightly simplify pdb_samba_dsdb_set_trusteddom_pw()
This is easier to read to me. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
8cd296e42d
commit
770f279ab7
@ -2723,12 +2723,7 @@ static bool pdb_samba_dsdb_set_trusteddom_pw(struct pdb_methods *m,
|
||||
}
|
||||
|
||||
for (i = 0; i < old_blob.current.count; i++) {
|
||||
struct AuthenticationInformation *o =
|
||||
&old_blob.current.array[i];
|
||||
struct AuthenticationInformation *p =
|
||||
&new_blob.previous.array[i];
|
||||
|
||||
*p = *o;
|
||||
new_blob.previous.array[i] = old_blob.current.array[i];
|
||||
new_blob.previous.count++;
|
||||
}
|
||||
for (; i < new_blob.count; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user