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)
commit8c630efd25cf17aff59448ca05c1b44a41964b16
treeb9af194f5715c142bcb613e5bbadf9d06c523499
parent2462562b5c90bc1c46237cd980810b0a69cd116d
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.
examples/libsmbclient/Makefile
examples/libsmbclient/testctx.c [new file with mode: 0644]
source/lib/charcnv.c
source/lib/debug.c
source/lib/util.c
source/lib/util_unistr.c
source/libsmb/libsmb_context.c
source/param/loadparm.c