summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-03-25 15:17:07 +0100
committerStefan Metzmacher <metze@samba.org>2010-03-29 18:11:18 +0200
commit4f391fedac7111683d13f2d79fee7c0dbc27f86e (patch)
tree81f981655c25a9c17bdc64f163ca52988d77c5f5 /source3
parentd980c06a994d032a833adc8d56d2f2c037f8fdaf (diff)
downloadsamba-4f391fedac7111683d13f2d79fee7c0dbc27f86e.tar.gz
samba-4f391fedac7111683d13f2d79fee7c0dbc27f86e.tar.bz2
samba-4f391fedac7111683d13f2d79fee7c0dbc27f86e.zip
s3:winbindd: consistently use TALLOC_FREE(conn->foo_pipe) is we create a new connection
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/winbindd_cm.c5
1 files changed, 5 insertions, 0 deletions
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);