diff options
-rw-r--r-- | source3/nsswitch/winbindd_sid.c | 5 |
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; |