From 12b1a63cebe1e8942ea1d61dcce98184f401d39f Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 25 Oct 2002 00:38:10 +0000 Subject: Only run free_private_data when specified (reported by Steve Langasek aka vorlon) (This used to be commit ecd3acbfcf912a775718e320c7cb66f60436c546) --- source3/passdb/pdb_interface.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit