summaryrefslogtreecommitdiffstats
path: root/source/param
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-08-12 13:34:00 -0700
committerKarolin Seeger <kseeger@samba.org>2008-08-13 16:11:16 +0200
commit9fcc15e0307ec1621482101b5730de1a635a191d (patch)
tree9db3dfe3362c2ddc5ce105f0b32d5624854de431 /source/param
parent9936dd1f611c275a38b9e5148bc6bf383bc306c0 (diff)
downloadsamba-9fcc15e0307ec1621482101b5730de1a635a191d.tar.gz
samba-9fcc15e0307ec1621482101b5730de1a635a191d.tar.xz
samba-9fcc15e0307ec1621482101b5730de1a635a191d.zip
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. (cherry picked from commit 4779f1efccc8364fd8b3ba446aa96ba0bddec689)
Diffstat (limited to 'source/param')
-rw-r--r--source/param/loadparm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/param/loadparm.c b/source/param/loadparm.c
index 14939fb326b..c894b7f2b50 100644
--- a/source/param/loadparm.c
+++ b/source/param/loadparm.c
@@ -8682,6 +8682,7 @@ void gfree_loadparm(void)
SAFE_FREE( f );
f = next;
}
+ file_lists = NULL;
/* Free resources allocated to services */