1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00
samba-mirror/libcli
Andrew Bartlett 5b4e3de2bb libcli/security: handle node initialisation in one spot in insert_in_object_tree()
This removes special-case for initalising the children array in
insert_in_object_tree().  talloc_realloc() handles the intial allocate
case perfectly well, so there is no need to have this duplicated.

This also restores having just one place were the rest of the elements
are intialised, to ensure uniform behaviour.

To do this, we have to rework insert_in_object_tree to have only one
output variable, both because having both root and new_node as output
variables was too confusing, and because otherwise the two pointers
were being allowed to point at the same memory.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>

Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2013-01-21 16:12:45 +01:00
..
auth libcli: Check schannel state return value of tdb_transaction_commit(). 2012-12-21 13:56:00 +01:00
cldap libcli/cldap/cldap.c - remove outdated comment 2011-11-10 20:32:08 +01:00
dns libcli/dns: Time out requests after a while 2012-10-16 12:58:31 +02:00
drsuapi idl: Use DRSUAPI_ATTID_ prefix instead of DRSUAPI_ATTRIBUTE_ for ATTID values 2010-10-31 23:54:04 +00:00
echo libcli/echo: validate the message length 2012-09-22 04:31:06 +02:00
ldap libcli: make it easier to understand that a control was not correctly encoded 2012-05-19 09:35:28 -07:00
lsarpc auth: Move the rest of the source4 gensec_ntlmssp code to the top level 2012-02-17 10:48:09 +01:00
named_pipe_auth libcli/smb move FILE_TYPE constants in common 2011-07-06 05:32:59 +02:00
nbt waf: Rename nmblookup manpage to nmblookup4. 2012-09-07 10:48:57 +02:00
netlogon waf: convert NDR_NBT into shared library. 2011-11-03 18:35:09 +01:00
registry build: Make util_reg subsystem in libcli/registry a library 2011-05-18 16:12:08 +02:00
samsync s3: add some forward declarations. 2011-04-12 12:20:43 +02:00
security libcli/security: handle node initialisation in one spot in insert_in_object_tree() 2013-01-21 16:12:45 +01:00
smb smb2_ioctl: split ioctl handler code on device type 2013-01-16 23:15:06 +01:00
smbreadline libcli/smbreadline/smbreadline.h: fix licence/copyright 2011-06-10 15:11:43 +02:00
util libcli: fix value of NT_STATUS_FILE_NOT_AVAILABLE 2012-08-22 01:30:06 +02:00