summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2010-07-14 08:57:47 -0400
committerAndreas Schneider <asn@samba.org>2010-07-14 15:03:02 +0200
commit23ad6919a1e5f16d02e22adcf36ea7f039a9eeea (patch)
tree30970f5e3728b9a1e1c80ab887602c5bf05419c1
parentd35e9008a78ed8303dad97296455faf6d0302805 (diff)
downloadsamba-23ad6919a1e5f16d02e22adcf36ea7f039a9eeea.tar.gz
samba-23ad6919a1e5f16d02e22adcf36ea7f039a9eeea.tar.bz2
samba-23ad6919a1e5f16d02e22adcf36ea7f039a9eeea.zip
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. Signed-off-by: Andreas Schneider <asn@samba.org>
-rw-r--r--source3/rpc_server/rpc_handles.c2
1 files changed, 1 insertions, 1 deletions
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;
}