Fix bug 8920, null dereference
commit7e0c5d1098c31510f0e2a0c6e69647e7d88461e9
authorSteve Langasek <steve.langasek@ubuntu.com>
Wed, 9 May 2012 05:56:00 +0000 (9 07:56 +0200)
committerKarolin Seeger <kseeger@samba.org>
Fri, 22 Jun 2012 19:40:29 +0000 (22 21:40 +0200)
tree02e147396a91d8cf46c10955dfd41439da727978
parent18db653a2e5b83d589a4b4e03adf2937ad3f6a82
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
(cherry picked from commit da5c342b6d3d3c05a8ab42bb40eb2e77d7b40ec2)
source3/passdb/pdb_interface.c