summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-07-21 00:00:22 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-07-21 00:00:22 +0000
commit48159764355e29a834ad0a6df2240642033775c7 (patch)
treed61ce3f69ef030d6f6b0d3357ccf739ee6db4066 /source3
parentc30f930262b2156e15f7dc927f2c71fc20f47f46 (diff)
downloadsamba-48159764355e29a834ad0a6df2240642033775c7.tar.gz
samba-48159764355e29a834ad0a6df2240642033775c7.tar.bz2
samba-48159764355e29a834ad0a6df2240642033775c7.zip
Compilers do find bugs :-)
This was a mixup between the enum type NSS_STATUS and a BOOL (extra test for equality). Andrew Bartlett (This used to be commit 63b7820b6585608c0ebb582ec8b28ed3c949a1f4)
Diffstat (limited to 'source3')
-rw-r--r--source3/nsswitch/wbinfo.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/nsswitch/wbinfo.c b/source3/nsswitch/wbinfo.c
index 4a23e3abe2..4d36acc51b 100644
--- a/source3/nsswitch/wbinfo.c
+++ b/source3/nsswitch/wbinfo.c
@@ -255,8 +255,7 @@ static BOOL wbinfo_check_secret(void)
ZERO_STRUCT(response);
- result = winbindd_request(WINBINDD_CHECK_MACHACC, NULL, &response) ==
- NSS_STATUS_SUCCESS;
+ result = winbindd_request(WINBINDD_CHECK_MACHACC, NULL, &response);
d_printf("checking the trust secret via RPC calls %s\n",
(result == NSS_STATUS_SUCCESS) ? "succeeded" : "failed");