summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-09-11 10:21:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:30:38 -0500
commit35a616e82c56e474d00eb4db21429abb97339894 (patch)
treea7796318e6318c759f48cf5631fbd4d3d5bb49de /source3/nsswitch
parent2569a25433779279327fde979065518604227fdc (diff)
downloadsamba-35a616e82c56e474d00eb4db21429abb97339894.tar.gz
samba-35a616e82c56e474d00eb4db21429abb97339894.tar.bz2
samba-35a616e82c56e474d00eb4db21429abb97339894.zip
r25074: as all requests in the winbindd child are sync, we can use talloc_tos()
metze (This used to be commit 6e238fe5b458fc6b9184144fa124f497c81eec8d)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbindd_dual.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/source3/nsswitch/winbindd_dual.c b/source3/nsswitch/winbindd_dual.c
index 05676682f9..67cf6abc2b 100644
--- a/source3/nsswitch/winbindd_dual.c
+++ b/source3/nsswitch/winbindd_dual.c
@@ -468,9 +468,8 @@ static void child_process_request(struct winbindd_domain *domain,
state->response.result = WINBINDD_ERROR;
state->response.length = sizeof(struct winbindd_response);
- state->mem_ctx = talloc_init("winbind request");
- if (state->mem_ctx == NULL)
- return;
+ /* as all requests in the child are sync, we can use talloc_tos() */
+ state->mem_ctx = talloc_tos();
/* Process command */
@@ -488,8 +487,6 @@ static void child_process_request(struct winbindd_domain *domain,
(int)state->request.cmd ));
state->response.result = WINBINDD_ERROR;
}
-
- talloc_destroy(state->mem_ctx);
}
void setup_domain_child(struct winbindd_domain *domain,