summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_getdcname.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/winbindd/winbindd_getdcname.c')
-rw-r--r--source3/winbindd/winbindd_getdcname.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/winbindd/winbindd_getdcname.c b/source3/winbindd/winbindd_getdcname.c
index 1c5f69e50d..cbf7f22eb8 100644
--- a/source3/winbindd/winbindd_getdcname.c
+++ b/source3/winbindd/winbindd_getdcname.c
@@ -65,8 +65,7 @@ static void winbindd_getdcname_done(struct tevent_req *subreq)
status = wb_dsgetdcname_recv(subreq, state, &state->dcinfo);
TALLOC_FREE(subreq);
- if (!NT_STATUS_IS_OK(status)) {
- tevent_req_nterror(req, status);
+ if (tevent_req_nterror(req, status)) {
return;
}
tevent_req_done(req);