summaryrefslogtreecommitdiff
path: root/source3/winbindd/wb_dsgetdcname.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/winbindd/wb_dsgetdcname.c')
-rw-r--r--source3/winbindd/wb_dsgetdcname.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source3/winbindd/wb_dsgetdcname.c b/source3/winbindd/wb_dsgetdcname.c
index 71aecfe97d..8c78599e9e 100644
--- a/source3/winbindd/wb_dsgetdcname.c
+++ b/source3/winbindd/wb_dsgetdcname.c
@@ -93,14 +93,10 @@ static void wb_dsgetdcname_done(struct tevent_req *subreq)
status = dcerpc_wbint_DsGetDcName_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;
- }
tevent_req_done(req);
}