fixed segv on startup with trusted domains
commitbea0a1ee8d931bb95d29acbb74593849167a38fd
authorAndrew Tridgell <tridge@samba.org>
Mon, 29 Sep 2008 18:18:21 +0000 (29 11:18 -0700)
committerKarolin Seeger <kseeger@samba.org>
Wed, 1 Oct 2008 06:28:13 +0000 (1 08:28 +0200)
tree640f3ad6f5020a06a1292baf3c83dd4fe2b66ac7
parent4d2eda0d28380ec04234a75177423d31190a2ef6
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 8ec11590f471d2852e5ffd3d1d65da54bd2182ca)
source/winbindd/idmap_tdb2.c