summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbindd.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-03-16 11:32:01 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:33 -0500
commitef115ff3148b1590ca6128ec31975ef20e334f66 (patch)
treedff69211638fc5b046ab64ed89870848298660f9 /source3/nsswitch/winbindd.c
parent5856fd510c577d61313474fc9788d72cce9a3c8e (diff)
downloadsamba-ef115ff3148b1590ca6128ec31975ef20e334f66.tar.gz
samba-ef115ff3148b1590ca6128ec31975ef20e334f66.tar.bz2
samba-ef115ff3148b1590ca6128ec31975ef20e334f66.zip
r14468: Better fix to avoid winbind panic when we have an inproper configuration
and want to just shutdown and exit. Guenther (This used to be commit 0aa6328ed6ba6d0d24169ffdff0099405c9bfb00)
Diffstat (limited to 'source3/nsswitch/winbindd.c')
-rw-r--r--source3/nsswitch/winbindd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd.c b/source3/nsswitch/winbindd.c
index 80cb6990a5..59437f05c2 100644
--- a/source3/nsswitch/winbindd.c
+++ b/source3/nsswitch/winbindd.c
@@ -1071,7 +1071,10 @@ int main(int argc, char **argv)
netsamlogon_cache_init(); /* Non-critical */
- init_domain_list();
+ if (!init_domain_list(True)) {
+ DEBUG(0,("unable to initalize domain list\n"));
+ exit(1);
+ }
init_idmap_child();