mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +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:
parent
d51c505d35
commit
54cd2af2de
@ -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,
|
static krb5_error_code samba_kdc_get_device_info_blob(TALLOC_CTX *mem_ctx,
|
||||||
|
krb5_context context,
|
||||||
struct samba_kdc_entry *device,
|
struct samba_kdc_entry *device,
|
||||||
DATA_BLOB **device_info_blob)
|
DATA_BLOB **device_info_blob)
|
||||||
{
|
{
|
||||||
@ -2441,6 +2442,7 @@ krb5_error_code samba_kdc_update_pac(TALLOC_CTX *mem_ctx,
|
|||||||
|
|
||||||
/* Also regenerate device info. */
|
/* Also regenerate device info. */
|
||||||
code = samba_kdc_get_device_info_blob(tmp_ctx,
|
code = samba_kdc_get_device_info_blob(tmp_ctx,
|
||||||
|
context,
|
||||||
device.entry,
|
device.entry,
|
||||||
&device_info_blob);
|
&device_info_blob);
|
||||||
if (code != 0) {
|
if (code != 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user