r13747: Fix the reference count for tdbsam_open() - on an
authorJeremy Allison <jra@samba.org>
Tue, 28 Feb 2006 06:33:31 +0000 (06:33 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:10:51 +0000 (11:10 -0500)
commitddf14cc286944e11cebfcf550cf57a7a9436a5a0
tree3ad4699f8fa0c23376617177509cbc816690d1e3
parent51d3bbe2858c8ed1afd9b3fd46ae952fd22d48f0
r13747: Fix the reference count for tdbsam_open() - on an
upgrade it calls tdbsam_convert() which calls tdbsam_open()
deep inside the init_sam_from_buffer_vX call.
If the ref count hasn't been set yet then we will close
the tdbsam reference in tdbsam_getsampwsid().
smbpasswd -a was core-dumping again :-).
Jeremy
(This used to be commit 993069eb87c190ba8ee92224340c8f9ffb3ade74)
source3/passdb/pdb_tdb.c