-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Stefan (metze) Metzmacher wrote: | [EMAIL PROTECTED] 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? cheers, jerry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDE4ENIR7qMdg1EfYRAgmxAJ4y1LNH/bYP/wrgvqH4xyMLqShVfgCfRHG6 9/A6kzepTaG3rB8EhEcJqVM= =5i1t -----END PGP SIGNATURE-----