diff options
author | Richard Sharpe <sharpe@samba.org> | 2002-05-19 07:08:32 +0000 |
---|---|---|
committer | Richard Sharpe <sharpe@samba.org> | 2002-05-19 07:08:32 +0000 |
commit | 56eea2623a8a8f2a5a0311cda6d0282d0037a3cc (patch) | |
tree | 11de8fee5e46c0fea16dfdc514796d6eb4de4c0a /source/nsswitch/wbinfo.c | |
parent | 84ea2a434b510ed49838a04a4b30bd2fc9ec5673 (diff) | |
download | samba-56eea2623a8a8f2a5a0311cda6d0282d0037a3cc.tar.gz samba-56eea2623a8a8f2a5a0311cda6d0282d0037a3cc.tar.xz samba-56eea2623a8a8f2a5a0311cda6d0282d0037a3cc.zip |
A small change to print out the error message only if we could not check the
secrets ...
Diffstat (limited to 'source/nsswitch/wbinfo.c')
-rw-r--r-- | source/nsswitch/wbinfo.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/nsswitch/wbinfo.c b/source/nsswitch/wbinfo.c index 38cc049297b..8517a5ce1c7 100644 --- a/source/nsswitch/wbinfo.c +++ b/source/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; } |