]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:kdc: Note use of parent memory context
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 5 Oct 2023 03:35:52 +0000 (16:35 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 12 Oct 2023 23:13:32 +0000 (23:13 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/kdc/pac-glue.c

index 4bd6cfd2a783f1643984e8e47dd62aa0064fceeb..81fd6bd5ccdb3ec1ecf7d7dd4e8d22c7675b32f1 100644 (file)
@@ -2633,6 +2633,10 @@ krb5_error_code samba_kdc_update_pac(TALLOC_CTX *mem_ctx,
                        auth_user_info_dc = user_info_dc_const;
                }
 
+               /*
+                * Allocate the audit info and output status on to the parent
+                * mem_ctx, not the temporary context.
+                */
                code = samba_kdc_allowed_to_authenticate_to(mem_ctx,
                                                            samdb,
                                                            lp_ctx,