1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

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 <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-10-03 13:48:11 +13:00 committed by Andrew Bartlett
parent d51c505d35
commit 54cd2af2de

View File

@ -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) {