From 1d5cb5125c9ed911e9560a3cd99bc428306539c5 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 18 Oct 2010 10:10:43 +0200 Subject: s3: Use any_nt_status_not_ok in winbind --- source3/winbindd/wb_dsgetdcname.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'source3/winbindd/wb_dsgetdcname.c') 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); } -- cgit