summaryrefslogtreecommitdiff
path: root/source3/winbindd/wb_queryuser.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/winbindd/wb_queryuser.c')
-rw-r--r--source3/winbindd/wb_queryuser.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source3/winbindd/wb_queryuser.c b/source3/winbindd/wb_queryuser.c
index f14fbcbed6..9685119d7e 100644
--- a/source3/winbindd/wb_queryuser.c
+++ b/source3/winbindd/wb_queryuser.c
@@ -73,14 +73,10 @@ static void wb_queryuser_done(struct tevent_req *subreq)
status = dcerpc_wbint_QueryUser_recv(subreq, state->info, &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;
- }
tevent_req_done(req);
}