From: Joseph Sutton Date: Thu, 5 Oct 2023 03:35:52 +0000 (+1300) Subject: s4:kdc: Note use of parent memory context X-Git-Tag: tevent-0.16.0~106 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6d3d6f9bbec432ca8a3839ab19775f9b948f55e3;p=thirdparty%2Fsamba.git s4:kdc: Note use of parent memory context Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source4/kdc/pac-glue.c b/source4/kdc/pac-glue.c index 4bd6cfd2a78..81fd6bd5ccd 100644 --- a/source4/kdc/pac-glue.c +++ b/source4/kdc/pac-glue.c @@ -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,