Fix bug 5686 - libsmbclient segfaults with more than one SMBCCTX.
authorJeremy Allison <jra@samba.org>
Tue, 12 Aug 2008 20:35:15 +0000 (13:35 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 12 Aug 2008 20:35:15 +0000 (13:35 -0700)
commit03991ab0734ecbb87a75238d1356fbe0e5b1d38d
treec96c68c0f2fd8359c2250621f4b0938903ae385f
parent9caabc441b3bfe860f9719cf64b6646f58a5cb59
Fix bug 5686 - libsmbclient segfaults with more than one SMBCCTX.
Here is a patch to allow many subsystems to be re-initialized. The only
functional change I made was to remove the null context tracking, as the memory
allocated here is designed to be left for the complete lifetime of the program.
Freeing this early (when all smb contexts are destroyed) could crash other
users of talloc.
Jeremy.
(This used to be commit 8c630efd25cf17aff59448ca05c1b44a41964b16)
examples/libsmbclient/Makefile
examples/libsmbclient/testctx.c [new file with mode: 0644]
source3/lib/charcnv.c
source3/lib/debug.c
source3/lib/util.c
source3/lib/util_unistr.c
source3/libsmb/libsmb_context.c
source3/param/loadparm.c