summaryrefslogtreecommitdiff
path: root/source3/winbindd/wb_sid2gid.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/winbindd/wb_sid2gid.c')
-rw-r--r--source3/winbindd/wb_sid2gid.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source3/winbindd/wb_sid2gid.c b/source3/winbindd/wb_sid2gid.c
index 76fe326996..9adff51d16 100644
--- a/source3/winbindd/wb_sid2gid.c
+++ b/source3/winbindd/wb_sid2gid.c
@@ -145,14 +145,10 @@ static void wb_sid2gid_done(struct tevent_req *subreq)
status = dcerpc_wbint_Sid2Gid_recv(subreq, state, &result);
TALLOC_FREE(subreq);
- if (!NT_STATUS_IS_OK(status)) {
+ if (any_nt_status_not_ok(status, result, &status)) {
tevent_req_nterror(req, status);
return;
}
- if (!NT_STATUS_IS_OK(result)) {
- tevent_req_nterror(req, result);
- return;
- }
state->gid = state->gid64;
tevent_req_done(req);