From 44cc1656276d99816614408b5cd846e6a57eacf0 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 10 May 2011 11:05:47 +0200 Subject: s3: Use tevent_req_ntstatus properly in a few places Autobuild-User: Volker Lendecke Autobuild-Date: Tue May 10 13:11:10 CEST 2011 on sn-devel-104 --- source3/winbindd/wb_fill_pwent.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'source3/winbindd/wb_fill_pwent.c') diff --git a/source3/winbindd/wb_fill_pwent.c b/source3/winbindd/wb_fill_pwent.c index 6fad5f4360..a716245ce8 100644 --- a/source3/winbindd/wb_fill_pwent.c +++ b/source3/winbindd/wb_fill_pwent.c @@ -72,8 +72,7 @@ static void wb_fill_pwent_sid2uid_done(struct tevent_req *subreq) status = wb_sid2uid_recv(subreq, &state->pw->pw_uid); TALLOC_FREE(subreq); - if (!NT_STATUS_IS_OK(status)) { - tevent_req_nterror(req, status); + if (tevent_req_nterror(req, status)) { return; } @@ -98,8 +97,7 @@ static void wb_fill_pwent_sid2gid_done(struct tevent_req *subreq) status = wb_sid2gid_recv(subreq, &state->pw->pw_gid); TALLOC_FREE(subreq); - if (!NT_STATUS_IS_OK(status)) { - tevent_req_nterror(req, status); + if (tevent_req_nterror(req, status)) { return; } -- cgit