diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2002-10-25 00:38:10 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2002-10-25 00:38:10 +0000 |
commit | 12b1a63cebe1e8942ea1d61dcce98184f401d39f (patch) | |
tree | 6e9a31e0610b0689e1b3499c7ea9ce6cf605f861 /source3/passdb | |
parent | f861aab464e5344d0be1ea68272db832a25223b5 (diff) | |
download | samba-12b1a63cebe1e8942ea1d61dcce98184f401d39f.tar.gz samba-12b1a63cebe1e8942ea1d61dcce98184f401d39f.tar.bz2 samba-12b1a63cebe1e8942ea1d61dcce98184f401d39f.zip |
Only run free_private_data when specified (reported by Steve Langasek aka vorlon)
(This used to be commit ecd3acbfcf912a775718e320c7cb66f60436c546)
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/pdb_interface.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/passdb/pdb_interface.c b/source3/passdb/pdb_interface.c index a94b8b8992..c8a27dd8c4 100644 --- a/source3/passdb/pdb_interface.c +++ b/source3/passdb/pdb_interface.c @@ -225,7 +225,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; } |