svn commit: samba r9752 - branches/SAMBA_3_0/source/rpc_server
abartlet at samba.org
Mon Aug 29 21:45:59 GMT 2005
On Mon, 2005-08-29 at 16:41 -0500, Gerald (Jerry) Carter wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> Stefan (metze) Metzmacher wrote:
> | jerry at samba.org schrieb:
> |>>figured out why talloc_steal() is a bad idea for SEC_DESC*
> |>>Add a comment so someone else doesn't get bitten by this as well.
> | we hit the same problem in samba4 a few week ago,
> | the solution is to correctly create the SEC_DESC buffers,
> | and mad the sub elements childs of the main structure.
> so then is talloc_steal supposed to move a pointer and
> all its children from one context to another? Or just
> the pointer itself. If I ensure that the members of
> SEC_DESC are create from the top level SEC_DESC pointer,
> talloc_steal() would work?
Yes, if you create a tree (as you propose) you can just steal the top of
Andrew Bartlett http://samba.org/~abartlet/
Samba Developer, SuSE Labs, Novell Inc. http://suse.de
Authentication Developer, Samba Team http://samba.org
Student Network Administrator, Hawker College http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20050830/be67cc27/attachment.bin
More information about the samba-technical