[SCM] Samba Shared Repository - branch v3-3-test updated -
release-3-2-0pre2-4470-g72a2b96
Günther Deschner
gd at samba.org
Fri Nov 21 01:22:44 GMT 2008
The branch, v3-3-test has been updated
via 72a2b9615025c249c7cf1376ebeeb6a29537504f (commit)
from fa20fa5d243ee640f5d564525358c1f5ba2df3a7 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test
- Log -----------------------------------------------------------------
commit 72a2b9615025c249c7cf1376ebeeb6a29537504f
Author: Volker Lendecke <vl at sernet.de>
Date: Sat Aug 23 13:12:36 2008 +0200
Use talloc_stackframe() in machine_password_change_handler (This used to be commit 79103000b13c95325534db749a0da638a3eb1807)
-----------------------------------------------------------------------
Summary of changes:
source/winbindd/winbindd_dual.c | 14 +++++---------
1 files changed, 5 insertions(+), 9 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/winbindd/winbindd_dual.c b/source/winbindd/winbindd_dual.c
index 403a9bc..4a16694 100644
--- a/source/winbindd/winbindd_dual.c
+++ b/source/winbindd/winbindd_dual.c
@@ -925,7 +925,7 @@ static void machine_password_change_handler(struct event_context *ctx,
struct winbindd_child *child =
(struct winbindd_child *)private_data;
struct rpc_pipe_client *netlogon_pipe = NULL;
- TALLOC_CTX *mem_ctx = NULL;
+ TALLOC_CTX *frame;
NTSTATUS result;
struct timeval next_change;
@@ -945,24 +945,20 @@ static void machine_password_change_handler(struct event_context *ctx,
return;
}
- mem_ctx = talloc_init("machine_password_change_handler ");
- if (!mem_ctx) {
- return;
- }
-
result = cm_connect_netlogon(child->domain, &netlogon_pipe);
if (!NT_STATUS_IS_OK(result)) {
DEBUG(10,("machine_password_change_handler: "
"failed to connect netlogon pipe: %s\n",
nt_errstr(result)));
- TALLOC_FREE(mem_ctx);
return;
}
+ frame = talloc_stackframe();
+
result = trust_pw_find_change_and_store_it(netlogon_pipe,
- mem_ctx,
+ frame,
child->domain->name);
- TALLOC_FREE(mem_ctx);
+ TALLOC_FREE(frame);
if (!NT_STATUS_IS_OK(result)) {
DEBUG(10,("machine_password_change_handler: "
--
Samba Shared Repository
More information about the samba-cvs
mailing list