mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
Only run free_private_data when it's specified (reported by Steve Langasek aka vorlon)
(This used to be commit 9efa98b4a65a38df922ce3b83f5fde631cb70844)
This commit is contained in:
parent
af09297cbc
commit
5b90fdc6bb
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user