summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-05-10 05:19:47 +0000
committerTim Potter <tpot@samba.org>2001-05-10 05:19:47 +0000
commita17c702a70915d95b8c731996d30f7694ed2c883 (patch)
tree83409ea84a30d0fdbc680932c75e4456b5f0d0b5
parentf5243954faee5380d43f00cdb2fa820da5d50ebd (diff)
downloadsamba-a17c702a70915d95b8c731996d30f7694ed2c883.tar.gz
samba-a17c702a70915d95b8c731996d30f7694ed2c883.tar.bz2
samba-a17c702a70915d95b8c731996d30f7694ed2c883.zip
Use sid_peek_rid() instead of sid_split_rid().
(This used to be commit 0e03209af6f70c3c0c52072fe904ba5750676b63)
-rw-r--r--source3/nsswitch/winbindd_sid.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/nsswitch/winbindd_sid.c b/source3/nsswitch/winbindd_sid.c
index bc014f2691..e426dd588e 100644
--- a/source3/nsswitch/winbindd_sid.c
+++ b/source3/nsswitch/winbindd_sid.c
@@ -30,7 +30,7 @@ enum winbindd_result winbindd_lookupsid(struct winbindd_cli_state *state)
{
extern DOM_SID global_sid_Builtin;
enum SID_NAME_USE type;
- DOM_SID sid, tmp_sid;
+ DOM_SID sid;
uint32 rid;
fstring name;
@@ -43,8 +43,7 @@ enum winbindd_result winbindd_lookupsid(struct winbindd_cli_state *state)
/* Don't look up BUILTIN sids */
- sid_copy(&tmp_sid, &sid);
- sid_split_rid(&tmp_sid, &rid);
+ sid_peek_rid(&sid, &rid);
if (sid_equal(&tmp_sid, &global_sid_Builtin)) {
return WINBINDD_ERROR;