From 4f391fedac7111683d13f2d79fee7c0dbc27f86e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 25 Mar 2010 15:17:07 +0100 Subject: s3:winbindd: consistently use TALLOC_FREE(conn->foo_pipe) is we create a new connection metze --- source3/winbindd/winbindd_cm.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3/winbindd/winbindd_cm.c') diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c index 24e555607b..c5f93728ba 100644 --- a/source3/winbindd/winbindd_cm.c +++ b/source3/winbindd/winbindd_cm.c @@ -2022,6 +2022,7 @@ NTSTATUS cm_connect_sam(struct winbindd_domain *domain, TALLOC_CTX *mem_ctx, goto done; } + TALLOC_FREE(conn->samr_pipe); /* * No SAMR pipe yet. Attempt to get an NTLMSSP SPNEGO authenticated @@ -2249,6 +2250,8 @@ NTSTATUS cm_connect_lsa(struct winbindd_domain *domain, TALLOC_CTX *mem_ctx, goto done; } + TALLOC_FREE(conn->lsa_pipe); + if ((conn->cli->user_name[0] == '\0') || (conn->cli->domain[0] == '\0') || (conn->cli->password == NULL || conn->cli->password[0] == '\0')) { @@ -2381,6 +2384,8 @@ NTSTATUS cm_connect_netlogon(struct winbindd_domain *domain, return NT_STATUS_OK; } + TALLOC_FREE(conn->netlogon_pipe); + result = cli_rpc_pipe_open_noauth(conn->cli, &ndr_table_netlogon.syntax_id, &netlogon_pipe); -- cgit