summaryrefslogtreecommitdiff
path: root/source4/kdc/hdb-samba4.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2014-05-09 14:54:23 +0200
committerGünther Deschner <gd@samba.org>2015-03-27 01:26:16 +0100
commit7afd9e6aca49e78d25d1415ad5739df873c17d94 (patch)
tree71247f8aa12a82ea877a05a137d5fee794fd6acc /source4/kdc/hdb-samba4.c
parent1afd3d32623336b178a90d6cd4ef395a5c6b3c19 (diff)
downloadsamba-7afd9e6aca49e78d25d1415ad5739df873c17d94.tar.gz
s4-kdc/db_glue: pass down only a samba_kdc_entry to samba_kdc_check_s4u2self().
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/kdc/hdb-samba4.c')
-rw-r--r--source4/kdc/hdb-samba4.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/kdc/hdb-samba4.c b/source4/kdc/hdb-samba4.c
index 52ddb5ea7ea..6e4f5c21fa2 100644
--- a/source4/kdc/hdb-samba4.c
+++ b/source4/kdc/hdb-samba4.c
@@ -158,13 +158,16 @@ hdb_samba4_check_s4u2self(krb5_context context, HDB *db,
krb5_const_principal target_principal)
{
struct samba_kdc_db_context *kdc_db_ctx;
+ struct samba_kdc_entry *skdc_entry;
kdc_db_ctx = talloc_get_type_abort(db->hdb_db,
struct samba_kdc_db_context);
+ skdc_entry = talloc_get_type_abort(entry->ctx,
+ struct samba_kdc_entry);
return samba_kdc_check_s4u2self(context, kdc_db_ctx,
- entry,
- target_principal);
+ skdc_entry,
+ target_principal);
}
static krb5_error_code hdb_samba4_auth_status(krb5_context context, HDB *db,