r20090: Fix a class of bugs found by James Peach. Ensure
authorJeremy Allison <jra@samba.org>
Sat, 9 Dec 2006 02:58:18 +0000 (02:58 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:16:24 +0000 (12:16 -0500)
commit0ffca7559e07500bd09a64b775e230d448ce5c24
tree16019eb51c65b8f328abf4270a5acd44bb054d4b
parent3d6f387783467bbd7ea88d6a853b41572badf1ef
r20090: Fix a class of bugs found by James Peach. Ensure
we never mix malloc and talloc'ed contexts in the
add_XX_to_array() and add_XX_to_array_unique()
calls. Ensure that these calls always return
False on out of memory, True otherwise and always
check them. Ensure that the relevent parts of
the conn struct and the nt_user_tokens are
TALLOC_DESTROYED not SAFE_FREE'd.
James - this should fix your crash bug in both
branches.
Jeremy.
20 files changed:
source/auth/auth_util.c
source/groupdb/mapping.c
source/groupdb/mapping_ldb.c
source/groupdb/mapping_tdb.c
source/lib/privileges.c
source/lib/system_smbd.c
source/lib/util.c
source/lib/util_sid.c
source/lib/util_str.c
source/nsswitch/winbindd_ads.c
source/nsswitch/winbindd_async.c
source/nsswitch/winbindd_cm.c
source/nsswitch/winbindd_group.c
source/nsswitch/winbindd_rpc.c
source/nsswitch/winbindd_util.c
source/passdb/pdb_interface.c
source/passdb/pdb_ldap.c
source/rpcclient/cmd_samr.c
source/smbd/conn.c
source/smbd/service.c