1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r25074: as all requests in the winbindd child are sync, we can use talloc_tos()

metze
(This used to be commit 6e238fe5b4)
This commit is contained in:
Stefan Metzmacher 2007-09-11 10:21:34 +00:00 committed by Gerald (Jerry) Carter
parent 2569a25433
commit 35a616e82c

View File

@ -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,