git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edb7d8a
)
s3:winbindd: consistently use TALLOC_FREE(conn->foo_pipe) is we create a new connection
author
Stefan Metzmacher
<metze@samba.org>
Thu, 25 Mar 2010 14:17:07 +0000
(15:17 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Wed, 7 Apr 2010 12:00:04 +0000
(14:00 +0200)
metze
(cherry picked from commit
4f391fedac7111683d13f2d79fee7c0dbc27f86e
)
(cherry picked from commit
c462e54142c00fdd81c2847d16a75119b1cc89fc
)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/winbindd/winbindd_cm.c
patch
|
blob
|
history
diff --git
a/source3/winbindd/winbindd_cm.c
b/source3/winbindd/winbindd_cm.c
index af12c5cf33fc1a5bc87f80f4d768f0c26b81e13c..4199e1acdeefa7e6c5e38867f6ea1006ff3c9885 100644
(file)
--- a/
source3/winbindd/winbindd_cm.c
+++ b/
source3/winbindd/winbindd_cm.c
@@
-2010,6
+2010,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
@@
-2237,6
+2238,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')) {
@@
-2369,6
+2372,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);