diff options
-rw-r--r-- | source3/winbindd/winbindd_dual_srv.c | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/source3/winbindd/winbindd_dual_srv.c b/source3/winbindd/winbindd_dual_srv.c index 9be295ffdc..23d3de13a7 100644 --- a/source3/winbindd/winbindd_dual_srv.c +++ b/source3/winbindd/winbindd_dual_srv.c @@ -96,26 +96,14 @@ NTSTATUS _wbint_Sid2Gid(pipes_struct *p, struct wbint_Sid2Gid *r) NTSTATUS _wbint_Uid2Sid(pipes_struct *p, struct wbint_Uid2Sid *r) { - NTSTATUS status; - - status = idmap_uid_to_sid(r->in.dom_name ? r->in.dom_name : "", - r->out.sid, r->in.uid); - if (!NT_STATUS_IS_OK(status)) { - return status; - } - return NT_STATUS_OK; + return idmap_uid_to_sid(r->in.dom_name ? r->in.dom_name : "", + r->out.sid, r->in.uid); } NTSTATUS _wbint_Gid2Sid(pipes_struct *p, struct wbint_Gid2Sid *r) { - NTSTATUS status; - - status = idmap_gid_to_sid(r->in.dom_name ? r->in.dom_name : "", - r->out.sid, r->in.gid); - if (!NT_STATUS_IS_OK(status)) { - return status; - } - return NT_STATUS_OK; + return idmap_gid_to_sid(r->in.dom_name ? r->in.dom_name : "", + r->out.sid, r->in.gid); } NTSTATUS _wbint_QueryUser(pipes_struct *p, struct wbint_QueryUser *r) |