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:
parent
2569a25433
commit
35a616e82c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user