]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
pdb: Slightly simplify pdb_samba_dsdb_set_trusteddom_pw()
authorVolker Lendecke <vl@samba.org>
Fri, 6 Oct 2023 05:51:27 +0000 (07:51 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 10 Oct 2023 23:23:40 +0000 (23:23 +0000)
This is easier to read to me.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/passdb/pdb_samba_dsdb.c

index 7e96c8633144b5186035ea6ce62857232e745aee..ef90ab7342b7f05bb27313dcd085f73f3dcd023f 100644 (file)
@@ -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++) {