s3: Remove debug_ctx()
authorVolker Lendecke <vl@samba.org>
Tue, 3 Nov 2009 09:59:18 +0000 (10:59 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 26 Nov 2009 10:40:03 +0000 (11:40 +0100)
commit2176e0a8453cd53894e1f27dfbc86beeaf06cdd9
treefd69b8c5d1e94a88f939227065737631f6ea3100
parent2b9233a026f9e4f80d0b4d71a95068e0a5405c68
s3: Remove debug_ctx()

smbd just crashed on me: In a debug message I called a routine preparing a
string that itself used debug_ctx. The outer routine also used it after the
inner routine had returned. It was still referencing the talloc context
that the outer debug_ctx() had given us, which the inner DEBUG had already
freed.
(cherry picked from commit 172542036aa1047cc7ee95c8e0a33dead6b3076f)
13 files changed:
source3/include/proto.h
source3/lib/debug.c
source3/lib/util_sid.c
source3/libsmb/trusts_util.c
source3/locking/brlock.c
source3/locking/locking.c
source3/passdb/pdb_ads.c
source3/rpc_client/cli_pipe.c
source3/rpc_parse/parse_prs.c
source3/smbd/change_trust_pw.c
source3/smbd/filename_util.c
source3/smbd/oplock.c
source3/smbd/oplock_onefs.c