summaryrefslogtreecommitdiffstats
path: root/source4/smb_server/sesssetup.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-12-24 23:02:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:07:37 -0500
commit0f1444b77232d59aaa025fa44e5b88c4aabaf877 (patch)
tree25827d127fe0d1b94944a890a9a6e68f9cd835f4 /source4/smb_server/sesssetup.c
parent06275d6197f05ad01f2ec5571698fba79cdd68bb (diff)
downloadsamba-0f1444b77232d59aaa025fa44e5b88c4aabaf877.tar.gz
samba-0f1444b77232d59aaa025fa44e5b88c4aabaf877.tar.xz
samba-0f1444b77232d59aaa025fa44e5b88c4aabaf877.zip
r4358: At metze's request, the Christmas elves have removed gensec_end in
favor of talloc_free(). Andrew Bartlett (This used to be commit 1933cd12fbaed56e13f2386b19de6ade99bf9478)
Diffstat (limited to 'source4/smb_server/sesssetup.c')
-rw-r--r--source4/smb_server/sesssetup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/smb_server/sesssetup.c b/source4/smb_server/sesssetup.c
index 85fac5680b..dcecc1327c 100644
--- a/source4/smb_server/sesssetup.c
+++ b/source4/smb_server/sesssetup.c
@@ -287,7 +287,8 @@ static NTSTATUS sesssetup_spnego(struct smbsrv_request *req, union smb_sesssetup
status = nt_status_squash(status);
if (smb_sess->gensec_ctx &&
!NT_STATUS_EQUAL(status, NT_STATUS_MORE_PROCESSING_REQUIRED)) {
- gensec_end(&smb_sess->gensec_ctx);
+ talloc_free(smb_sess->gensec_ctx);
+ smb_sess->gensec_ctx = NULL;
}
}