summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2007-12-23 00:32:09 +0100
committerVolker Lendecke <vl@samba.org>2007-12-23 00:49:32 +0100
commit9cd009b031a7cc076bb3cbb945c4ec528ea731a1 (patch)
tree41167354b17bb9c118f4510096dd965d15abd6ce /source3
parent596018455af0d80add90215689a80d336157429c (diff)
downloadsamba-9cd009b031a7cc076bb3cbb945c4ec528ea731a1.tar.gz
samba-9cd009b031a7cc076bb3cbb945c4ec528ea731a1.tar.bz2
samba-9cd009b031a7cc076bb3cbb945c4ec528ea731a1.zip
tiny simplification
(This used to be commit 8bd248456205a82d57af21559a77a1030f4679b7)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/winbind_util.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/source3/lib/winbind_util.c b/source3/lib/winbind_util.c
index f4e7ab19e8..f51a0171a2 100644
--- a/source3/lib/winbind_util.c
+++ b/source3/lib/winbind_util.c
@@ -105,8 +105,6 @@ bool winbind_sid_to_uid(uid_t *puid, const DOM_SID *sid)
memcpy(&dom_sid, sid, sizeof(dom_sid));
result = wbcSidToUid(&dom_sid, puid);
- if (result != WBC_ERR_SUCCESS)
- return False;
return (result == WBC_ERR_SUCCESS);
}
@@ -138,8 +136,6 @@ bool winbind_sid_to_gid(gid_t *pgid, const DOM_SID *sid)
memcpy(&dom_sid, sid, sizeof(dom_sid));
result = wbcSidToGid(&dom_sid, pgid);
- if (result != WBC_ERR_SUCCESS)
- return False;
return (result == WBC_ERR_SUCCESS);
}