diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-10-21 08:52:01 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:02:22 -0500 |
commit | 6a304256d00e225872a06d1ec10152629352f41c (patch) | |
tree | a02b0f4aacd79f2f530672d497210d95676860b5 /source4/libcli/auth/gensec.c | |
parent | 1d990b526ea2844263a40c734b7d7aaabcb26822 (diff) | |
download | samba-6a304256d00e225872a06d1ec10152629352f41c.tar.gz samba-6a304256d00e225872a06d1ec10152629352f41c.tar.bz2 samba-6a304256d00e225872a06d1ec10152629352f41c.zip |
r3110: Fix the krb5 client and server, so that it doesn't segfault. There
were also gensec bugs that didn't turn up until we hit error paths in
the krb5 code.
Andrew Bartlett
(This used to be commit e08366ffeb52e8c522d3808a2af1aa0bc632b55f)
Diffstat (limited to 'source4/libcli/auth/gensec.c')
-rw-r--r-- | source4/libcli/auth/gensec.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source4/libcli/auth/gensec.c b/source4/libcli/auth/gensec.c index 353c5f562d..a00a36e171 100644 --- a/source4/libcli/auth/gensec.c +++ b/source4/libcli/auth/gensec.c @@ -452,11 +452,8 @@ void gensec_end(struct gensec_security **gensec_security) } (*gensec_security)->private_data = NULL; - if (!(*gensec_security)->subcontext) { - /* don't destory this if this is a subcontext - it belongs to the parent */ - talloc_free(*gensec_security); - } - gensec_security = NULL; + talloc_free(*gensec_security); + *gensec_security = NULL; } /** |