git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af09297
)
Only run free_private_data when it's specified (reported by Steve Langasek aka vorlon)
author
Jelmer Vernooij
<jelmer@samba.org>
Fri, 25 Oct 2002 00:36:28 +0000
(
00:36
+0000)
committer
Jelmer Vernooij
<jelmer@samba.org>
Fri, 25 Oct 2002 00:36:28 +0000
(
00:36
+0000)
(This used to be commit
9efa98b4a65a38df922ce3b83f5fde631cb70844
)
source3/passdb/pdb_interface.c
patch
|
blob
|
history
diff --git
a/source3/passdb/pdb_interface.c
b/source3/passdb/pdb_interface.c
index 7200150e3765b144fb02d20ee017532bc154cc2c..ca199f8ea6da0da630dd5879494317d8990c0dd4 100644
(file)
--- 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;
}