Fix bug 8920, null dereference
authorSteve Langasek <steve.langasek@ubuntu.com>
Wed, 9 May 2012 05:56:00 +0000 (07:56 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 10 May 2012 09:01:00 +0000 (11:01 +0200)
commitda5c342b6d3d3c05a8ab42bb40eb2e77d7b40ec2
tree12b22ce04bc36c9e9f7232b97803741146f4fc6d
parent00c901a5be83bfe4c70eccbe7fa2a35d3d2a368d
Fix bug 8920, null dereference

Description: Avoid null dereference in initialize_password_db()
 When initialize_password_db() is called with reload=True, it's assumed that
 the free_private_data member of pdb_methods is non-null.  This is not
 necessarily the case, as the tdb backend has no private data and therefore
 no free function.  Check to see if we have private data that needs freed
 before calling.
Author: Steve Langasek <steve.langasek@ubuntu.com>
Bug-Ubuntu: https://bugs.launchpad.net/bugs/829221
source3/passdb/pdb_interface.c