r4360: destroy the gensec context
authorStefan Metzmacher <metze@samba.org>
Sat, 25 Dec 2004 14:06:55 +0000 (14:06 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:07:38 +0000 (13:07 -0500)
metze
(This used to be commit a25770983b34bac5bd7dcce69241716386dc8509)

source4/librpc/rpc/dcerpc_auth.c

index 1c5556ccee3a931c429efb0b2150c81470673fe1..36e4ba6eea1a3f397649f6aba9f414e6f825e904 100644 (file)
@@ -199,6 +199,7 @@ done:
        talloc_destroy(mem_ctx);
 
        if (!NT_STATUS_IS_OK(status)) {
        talloc_destroy(mem_ctx);
 
        if (!NT_STATUS_IS_OK(status)) {
+               talloc_free(p->security_state.generic_state);
                ZERO_STRUCT(p->security_state);
        } else {
                /* Authenticated connections use the generic session key */
                ZERO_STRUCT(p->security_state);
        } else {
                /* Authenticated connections use the generic session key */