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