From: Joseph Sutton Date: Tue, 3 Oct 2023 00:48:11 +0000 (+1300) Subject: s4:kdc: Pass Kerberos context into samba_kdc_get_device_info_blob() X-Git-Tag: tevent-0.16.0~140 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=54cd2af2de7a2dec965e1362c83ade19c1e21796;p=thirdparty%2Fsamba.git s4:kdc: Pass Kerberos context into samba_kdc_get_device_info_blob() We shall need it in order to produce an error string. Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source4/kdc/pac-glue.c b/source4/kdc/pac-glue.c index f510ca1ef2c..ad29a3c4259 100644 --- a/source4/kdc/pac-glue.c +++ b/source4/kdc/pac-glue.c @@ -2030,6 +2030,7 @@ static krb5_error_code samba_kdc_create_device_info_blob(TALLOC_CTX *mem_ctx, } static krb5_error_code samba_kdc_get_device_info_blob(TALLOC_CTX *mem_ctx, + krb5_context context, struct samba_kdc_entry *device, DATA_BLOB **device_info_blob) { @@ -2441,6 +2442,7 @@ krb5_error_code samba_kdc_update_pac(TALLOC_CTX *mem_ctx, /* Also regenerate device info. */ code = samba_kdc_get_device_info_blob(tmp_ctx, + context, device.entry, &device_info_blob); if (code != 0) {