summaryrefslogtreecommitdiff
path: root/source4/auth/gensec
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-09-22 22:28:58 -0700
committerAndrew Tridgell <tridge@samba.org>2010-09-23 07:17:57 +0000
commitbf1f2d4eb8c35ca4547993f33a1e19ff0c3c03c2 (patch)
treea5cd4c3f656aeaee51aa996fcd56c62e5a175272 /source4/auth/gensec
parent202525db1339805af5d5e837712b0aa834e8f5e0 (diff)
downloadsamba-bf1f2d4eb8c35ca4547993f33a1e19ff0c3c03c2.tar.gz
samba-bf1f2d4eb8c35ca4547993f33a1e19ff0c3c03c2.tar.bz2
samba-bf1f2d4eb8c35ca4547993f33a1e19ff0c3c03c2.zip
s4-gensec: prevent a double free in the error path of GSSAPI auth
the caller frees mem_ctx, so we shouldn't Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/auth/gensec')
-rw-r--r--source4/auth/gensec/socket.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/source4/auth/gensec/socket.c b/source4/auth/gensec/socket.c
index 6a03f0bcec..8ee6cbc552 100644
--- a/source4/auth/gensec/socket.c
+++ b/source4/auth/gensec/socket.c
@@ -77,7 +77,6 @@ _PUBLIC_ NTSTATUS gensec_wrap_packets(struct gensec_security *gensec_security,
mem_ctx,
&unwrapped, &wrapped);
if (!NT_STATUS_IS_OK(nt_status)) {
- talloc_free(mem_ctx);
return nt_status;
}