summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2002-05-19 07:08:32 +0000
committerRichard Sharpe <sharpe@samba.org>2002-05-19 07:08:32 +0000
commit4f8b957f4020e5f5c418de15fa33c755e28558f3 (patch)
tree2e70a8e37c83b5b8e79e88f2c6cbede6528dc8d2 /source3
parent80b22f643394b2362be2a5a0a3a8b192c133a88f (diff)
downloadsamba-4f8b957f4020e5f5c418de15fa33c755e28558f3.tar.gz
samba-4f8b957f4020e5f5c418de15fa33c755e28558f3.tar.bz2
samba-4f8b957f4020e5f5c418de15fa33c755e28558f3.zip
A small change to print out the error message only if we could not check the
secrets ... (This used to be commit 56eea2623a8a8f2a5a0311cda6d0282d0037a3cc)
Diffstat (limited to 'source3')
-rw-r--r--source3/nsswitch/wbinfo.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/nsswitch/wbinfo.c b/source3/nsswitch/wbinfo.c
index 38cc049297..8517a5ce1c 100644
--- a/source3/nsswitch/wbinfo.c
+++ b/source3/nsswitch/wbinfo.c
@@ -257,10 +257,11 @@ static BOOL wbinfo_check_secret(void)
d_printf("checking the trust secret via RPC calls %s\n",
(result == NSS_STATUS_SUCCESS) ? "succeeded" : "failed");
-
- d_printf("error code was %s (0x%x)\n",
- response.data.auth.nt_status_string,
- response.data.auth.nt_status);
+
+ if (result != NSS_STATUS_SUCCESS)
+ d_printf("error code was %s (0x%x)\n",
+ response.data.auth.nt_status_string,
+ response.data.auth.nt_status);
return result == NSS_STATUS_SUCCESS;
}