]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:kdc: move user_info_dc_shallow_copy variable in samba_kdc_update_pac()
authorStefan Metzmacher <metze@samba.org>
Wed, 19 Feb 2025 12:23:55 +0000 (13:23 +0100)
committerRalph Boehme <slow@samba.org>
Sat, 22 Feb 2025 22:06:39 +0000 (22:06 +0000)
This is only needed as tmp variable in the if block...

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source4/kdc/pac-glue.c

index e336a58073ed865e2eea5bae5417ee48671fc3b1..cfe3d285ab2e28ee73393a87cbc3076598d19168 100644 (file)
@@ -2660,7 +2660,6 @@ krb5_error_code samba_kdc_update_pac(TALLOC_CTX *mem_ctx,
        bool server_restrictions_present = false;
        struct pac_blobs *pac_blobs = NULL;
        const struct auth_user_info_dc *user_info_dc_const = NULL;
-       struct auth_user_info_dc *user_info_dc_shallow_copy = NULL;
        const struct auth_user_info_dc *device_info_dc = NULL;
        const struct PAC_DOMAIN_GROUP_MEMBERSHIP *_resource_groups = NULL;
        enum auth_group_inclusion group_inclusion;
@@ -2859,6 +2858,8 @@ krb5_error_code samba_kdc_update_pac(TALLOC_CTX *mem_ctx,
        }
 
        if (compounded_auth) {
+               struct auth_user_info_dc *user_info_dc_shallow_copy = NULL;
+
                /* Make a shallow copy of the user_info_dc structure. */
                nt_status = authsam_shallow_copy_user_info_dc(tmp_ctx,
                                                              user_info_dc_const,