s4-gensec: prevent a double free in the error path of GSSAPI auth
authorAndrew Tridgell <tridge@samba.org>
Thu, 23 Sep 2010 05:28:58 +0000 (22:28 -0700)
committerAndrew Tridgell <tridge@samba.org>
Thu, 23 Sep 2010 07:17:57 +0000 (07:17 +0000)
the caller frees mem_ctx, so we shouldn't

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/auth/gensec/socket.c

index 6a03f0bcecaedca1b015d442a7ad2ed6c33c9972..8ee6cbc552924bbcd32163f1da1049b7d3f17bce 100644 (file)
@@ -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;
                }