]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:kdc: Pass Kerberos context into samba_kdc_get_device_info_blob()
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 3 Oct 2023 00:48:11 +0000 (13:48 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 12 Oct 2023 23:13:32 +0000 (23:13 +0000)
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>
source4/kdc/pac-glue.c

index f510ca1ef2c1a3bd462fb6629fd8a309363ff1a5..ad29a3c42595695c98a60bd718bd659fa0d269cf 100644 (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) {