summaryrefslogtreecommitdiffstats
path: root/source3/winbindd/winbindd_dsgetdcname.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-10-18 10:10:43 +0200
committerVolker Lendecke <vl@samba.org>2010-10-20 18:09:20 +0200
commit1d5cb5125c9ed911e9560a3cd99bc428306539c5 (patch)
treeb484767751b73b9a9e6effd49b3f3485a4ebd26e /source3/winbindd/winbindd_dsgetdcname.c
parent347ca8f757d6a0b61bb22be21ffffec95986ad94 (diff)
downloadsamba-1d5cb5125c9ed911e9560a3cd99bc428306539c5.tar.gz
samba-1d5cb5125c9ed911e9560a3cd99bc428306539c5.tar.xz
samba-1d5cb5125c9ed911e9560a3cd99bc428306539c5.zip
s3: Use any_nt_status_not_ok in winbind
Diffstat (limited to 'source3/winbindd/winbindd_dsgetdcname.c')
-rw-r--r--source3/winbindd/winbindd_dsgetdcname.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source3/winbindd/winbindd_dsgetdcname.c b/source3/winbindd/winbindd_dsgetdcname.c
index f01d35428e..7e46c9653c 100644
--- a/source3/winbindd/winbindd_dsgetdcname.c
+++ b/source3/winbindd/winbindd_dsgetdcname.c
@@ -89,14 +89,10 @@ static void winbindd_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);
}