diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-09-25 12:08:57 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:59:14 -0500 |
commit | c5f4378361b9671e39fa83b043f28c972ab30b70 (patch) | |
tree | 455519b7d5590d151cf1f2291ca99f8fc77234bb /source4/libcli/auth/gensec_krb5.c | |
parent | 223e78990a16f134a01d1223a0dad8b2accd5fed (diff) | |
download | samba-c5f4378361b9671e39fa83b043f28c972ab30b70.tar.gz samba-c5f4378361b9671e39fa83b043f28c972ab30b70.tar.bz2 samba-c5f4378361b9671e39fa83b043f28c972ab30b70.zip |
r2629: convert gensec to the new talloc model
by making our gensec structures a talloc child of the open connection
we can be sure that it will be destroyed when the connection is
dropped.
(This used to be commit f12ee2f241aab1549bc1d9ca4c35a35a1ca0d09d)
Diffstat (limited to 'source4/libcli/auth/gensec_krb5.c')
-rw-r--r-- | source4/libcli/auth/gensec_krb5.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/libcli/auth/gensec_krb5.c b/source4/libcli/auth/gensec_krb5.c index c9e6d572db..37fa95bac4 100644 --- a/source4/libcli/auth/gensec_krb5.c +++ b/source4/libcli/auth/gensec_krb5.c @@ -367,14 +367,14 @@ static NTSTATUS gensec_krb5_client_start(struct gensec_security *gensec_security char *password; time_t kdc_time = 0; nt_status = gensec_get_password(gensec_security, - gensec_security->mem_ctx, + gensec_security, &password); if (!NT_STATUS_IS_OK(nt_status)) { return nt_status; } ret = kerberos_kinit_password_cc(gensec_krb5_state->krb5_context, gensec_krb5_state->krb5_ccache, - gensec_get_client_principal(gensec_security, gensec_security->mem_ctx), + gensec_get_client_principal(gensec_security, gensec_security), password, NULL, &kdc_time); /* cope with ticket being in the future due to clock skew */ |