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

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.
This commit is contained in:
Simo Sorce 2010-07-14 08:57:47 -04:00
parent d35e9008a7
commit 0ab8e8be62

View File

@ -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;
}