summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-01-19 11:08:49 +0100
committerStefan Metzmacher <metze@samba.org>2008-01-21 13:20:07 +0100
commitfa32063d074cfd8906b76c13a72fee1bc2bd899d (patch)
tree5510b967b7a7cc531df5fe40523469bbc5ca4299 /source3
parent2b9ed4700ad42e627919dc372adcb5b5188e9fa0 (diff)
downloadsamba-fa32063d074cfd8906b76c13a72fee1bc2bd899d.tar.gz
samba-fa32063d074cfd8906b76c13a72fee1bc2bd899d.tar.bz2
samba-fa32063d074cfd8906b76c13a72fee1bc2bd899d.zip
libwbclient: use the same style in each switch case for the error mapping
metze (This used to be commit 0b85f7173d0770f8d9a0bac9e43355eb45bc181f)
Diffstat (limited to 'source3')
-rw-r--r--source3/nsswitch/libwbclient/wbclient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/nsswitch/libwbclient/wbclient.c b/source3/nsswitch/libwbclient/wbclient.c
index 321a7db669..42a9943523 100644
--- a/source3/nsswitch/libwbclient/wbclient.c
+++ b/source3/nsswitch/libwbclient/wbclient.c
@@ -72,10 +72,10 @@ wbcErr wbcRequestResponse(int cmd,
wbc_status = WBC_ERR_SUCCESS;
break;
case NSS_STATUS_UNAVAIL:
- return WBC_ERR_WINBIND_NOT_AVAILABLE;
+ wbc_status = WBC_ERR_WINBIND_NOT_AVAILABLE;
break;
case NSS_STATUS_NOTFOUND:
- return WBC_ERR_DOMAIN_NOT_FOUND;
+ wbc_status = WBC_ERR_DOMAIN_NOT_FOUND;
break;
default:
wbc_status = WBC_ERR_NSS_ERROR;