svn commit: samba r9752 - branches/SAMBA_3_0/source/rpc_server
Gerald (Jerry) Carter
jerry at samba.org
Mon Aug 29 22:17:44 GMT 2005
-----BEGIN PGP SIGNED MESSAGE-----
Andrew Bartlett wrote:
| On Mon, 2005-08-29 at 16:41 -0500, Gerald (Jerry) Carter wrote:
|>-----BEGIN PGP SIGNED MESSAGE-----
|>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 the tree.
Excellent! That's what I initially thought, but thought
I was wrong.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the samba-technical