From 770f279ab751fb984e6cc8a3f80ae076c8fcad90 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 6 Oct 2023 07:51:27 +0200 Subject: [PATCH] pdb: Slightly simplify pdb_samba_dsdb_set_trusteddom_pw() This is easier to read to me. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/passdb/pdb_samba_dsdb.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/source3/passdb/pdb_samba_dsdb.c b/source3/passdb/pdb_samba_dsdb.c index 7e96c863314..ef90ab7342b 100644 --- a/source3/passdb/pdb_samba_dsdb.c +++ b/source3/passdb/pdb_samba_dsdb.c @@ -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++) {