From 0ab8e8be62bcbb1f6441f745736fcee7cbd559eb Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 14 Jul 2010 08:57:47 -0400 Subject: s3-dcerpc: Break memory hierarchy for shared structure Handles are shared among multiple pipes_struct. We cannot allocate them on any specific pipes_struct or it will vanish for all others as soon as that pipes_struct is freed, leaving back dangling pointers. --- source3/rpc_server/rpc_handles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/rpc_server/rpc_handles.c') diff --git a/source3/rpc_server/rpc_handles.c b/source3/rpc_server/rpc_handles.c index bfdc7a8561..e073fe45a2 100644 --- a/source3/rpc_server/rpc_handles.c +++ b/source3/rpc_server/rpc_handles.c @@ -103,7 +103,7 @@ bool init_pipe_handles(pipes_struct *p, const struct ndr_syntax_id *syntax) /* * First open, we have to create the handle list */ - hl = talloc_zero(p, struct handle_list); + hl = talloc_zero(NULL, struct handle_list); if (hl == NULL) { return false; } -- cgit