summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2002-10-25 00:36:28 +0000
committerJelmer Vernooij <jelmer@samba.org>2002-10-25 00:36:28 +0000
commit5b90fdc6bbe230cd676712c4de11b6dd78d8cb25 (patch)
treee3186936c72472cabc83ed49c46753e2080fcd78 /source3
parentaf09297cbc1f8aa046847728077b34f9a5186872 (diff)
downloadsamba-5b90fdc6bbe230cd676712c4de11b6dd78d8cb25.tar.gz
samba-5b90fdc6bbe230cd676712c4de11b6dd78d8cb25.tar.bz2
samba-5b90fdc6bbe230cd676712c4de11b6dd78d8cb25.zip
Only run free_private_data when it's specified (reported by Steve Langasek aka vorlon)
(This used to be commit 9efa98b4a65a38df922ce3b83f5fde631cb70844)
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/pdb_interface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/passdb/pdb_interface.c b/source3/passdb/pdb_interface.c
index 7200150e37..ca199f8ea6 100644
--- a/source3/passdb/pdb_interface.c
+++ b/source3/passdb/pdb_interface.c
@@ -354,7 +354,8 @@ static void free_pdb_context(struct pdb_context **context)
struct pdb_methods *pdb_selected = (*context)->pdb_methods;
while (pdb_selected){
- pdb_selected->free_private_data(&(pdb_selected->private_data));
+ if(pdb_selected->free_private_data)
+ pdb_selected->free_private_data(&(pdb_selected->private_data));
pdb_selected = pdb_selected->next;
}