1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

s3: Remove talloc_autofree_context() from srv_samr_nt.c

The dispinfo structs need to survive within a process across pipe opens,
but they don't have a special destructor
This commit is contained in:
Volker Lendecke 2010-10-02 23:40:48 +02:00
parent 41b54a8931
commit da0ef65e04

View File

@ -331,8 +331,7 @@ static DISP_INFO *get_samr_dispinfo_by_sid(const struct dom_sid *psid)
* Necessary only once, but it does not really hurt.
*/
if (builtin_dispinfo == NULL) {
builtin_dispinfo = talloc_zero(
talloc_autofree_context(), struct disp_info);
builtin_dispinfo = talloc_zero(NULL, struct disp_info);
if (builtin_dispinfo == NULL) {
return NULL;
}
@ -347,8 +346,7 @@ static DISP_INFO *get_samr_dispinfo_by_sid(const struct dom_sid *psid)
* Necessary only once, but it does not really hurt.
*/
if (domain_dispinfo == NULL) {
domain_dispinfo = talloc_zero(
talloc_autofree_context(), struct disp_info);
domain_dispinfo = talloc_zero(NULL, struct disp_info);
if (domain_dispinfo == NULL) {
return NULL;
}