svn commit: samba r9752 - branches/SAMBA_3_0/source/rpc_server trunk/source/rpc_server

Andrew Bartlett abartlet at
Mon Aug 29 21:45:59 GMT 2005

On Mon, 2005-08-29 at 16:41 -0500, Gerald (Jerry) Carter wrote:
> Hash: SHA1
> Stefan (metze) Metzmacher wrote:
> | jerry at 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.

Andrew Bartlett

Andrew Bartlett                      
Samba Developer, SuSE Labs, Novell Inc.
Authentication Developer, Samba Team 
Student Network Administrator, Hawker College
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url :

More information about the samba-technical mailing list