From 52a832b3fac89b9d5487ba98f7c6497412a15ae4 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Mon, 13 May 2002 00:23:06 +0000 Subject: Merge of secrets_init() paranoia fix from 2.2 (This used to be commit 1c3c0d7cb64caa6be7ee6d786fe400a1d6944a72) --- source3/nsswitch/winbindd.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source3/nsswitch') diff --git a/source3/nsswitch/winbindd.c b/source3/nsswitch/winbindd.c index 2c88d11cae..91215e0ef7 100644 --- a/source3/nsswitch/winbindd.c +++ b/source3/nsswitch/winbindd.c @@ -680,7 +680,12 @@ int winbind_setup_common(void) { load_interfaces(); - secrets_init(); + if (!secrets_init()) { + + DEBUG(0,("Could not initialize domain trust account secrets. Giving up\n")); + return 1; + + } /* Get list of domains we look up requests for. This includes the domain which we are a member of as well as any trusted -- cgit