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)
commit63609fbb04d2ce620338b4b79e7c1abf39f08ef8
treec036fe84a97efbee490c470051cf1de360d502d3
parent19ddef3dd9065b04896c626e7b4c691c7bbbec53
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.
(This used to be commit 0ffca7559e07500bd09a64b775e230d448ce5c24)
20 files changed:
source3/auth/auth_util.c
source3/groupdb/mapping.c
source3/groupdb/mapping_ldb.c
source3/groupdb/mapping_tdb.c
source3/lib/privileges.c
source3/lib/system_smbd.c
source3/lib/util.c
source3/lib/util_sid.c
source3/lib/util_str.c
source3/nsswitch/winbindd_ads.c
source3/nsswitch/winbindd_async.c
source3/nsswitch/winbindd_cm.c
source3/nsswitch/winbindd_group.c
source3/nsswitch/winbindd_rpc.c
source3/nsswitch/winbindd_util.c
source3/passdb/pdb_interface.c
source3/passdb/pdb_ldap.c
source3/rpcclient/cmd_samr.c
source3/smbd/conn.c
source3/smbd/service.c