fixed segv on startup with trusted domains
commit8b41be0c7080edaf9fb33e583c66f2ef50a91643
authorAndrew Tridgell <tridge@samba.org>
Mon, 29 Sep 2008 18:24:00 +0000 (29 11:24 -0700)
committerKarolin Seeger <kseeger@samba.org>
Mon, 6 Oct 2008 11:00:38 +0000 (6 13:00 +0200)
tree3bb42c074f49f3dbd64006432420d4abb02627ee
parenta48d591ef5d839159f600a8c7e2966211450c00b
fixed segv on startup with trusted domains

With some setups, idmap_tdb2_allocate_id can be called before the
allocate backend is initialised, leading to a segv. This change
ensures that the db is opened in all paths that use it
(cherry picked from commit 3a2a70996919a7ee08fea40b8e5f1cf2e3bd7caf)
source/winbindd/idmap_tdb2.c