summaryrefslogtreecommitdiffstats
path: root/source4/kdc
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-10-20 14:21:21 +1100
committerAndrew Bartlett <abartlet@samba.org>2008-10-20 20:07:09 +1100
commitc41cc6772203862e1015f7fc60ad0a06eca3051c (patch)
tree1ac400da48fa6e92862df82aaff9d707a0c9f111 /source4/kdc
parent71022daac2ad07bf48d42d016b15313727edcd08 (diff)
downloadsamba-c41cc6772203862e1015f7fc60ad0a06eca3051c.tar.gz
samba-c41cc6772203862e1015f7fc60ad0a06eca3051c.tar.xz
samba-c41cc6772203862e1015f7fc60ad0a06eca3051c.zip
Ensure the hdb_method structure is not on the stack.
We supply this to krb5 as a plugin, so we must keep it around as long as the krb5_context. Andrew Bartlett
Diffstat (limited to 'source4/kdc')
-rw-r--r--source4/kdc/kdc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/kdc/kdc.c b/source4/kdc/kdc.c
index cf6dbf0c93d..45fa803d049 100644
--- a/source4/kdc/kdc.c
+++ b/source4/kdc/kdc.c
@@ -657,6 +657,11 @@ static NTSTATUS kdc_check_generic_kerberos(struct irpc_message *msg,
}
+static struct hdb_method hdb_samba4 = {
+ .interface_version = HDB_INTERFACE_VERSION,
+ .prefix = "samba4:",
+ .create = hdb_samba4_create
+};
/*
startup the kdc task
@@ -667,11 +672,6 @@ static void kdc_task_init(struct task_server *task)
NTSTATUS status;
krb5_error_code ret;
struct interface *ifaces;
- struct hdb_method hdb_samba4 = {
- .interface_version = HDB_INTERFACE_VERSION,
- .prefix = "samba4:",
- .create = hdb_samba4_create
- };
switch (lp_server_role(task->lp_ctx)) {
case ROLE_STANDALONE: