diff options
author | Volker Lendecke <vl@samba.org> | 2011-05-10 11:05:47 +0200 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2011-05-10 13:11:10 +0200 |
commit | 44cc1656276d99816614408b5cd846e6a57eacf0 (patch) | |
tree | a8f61522f7166988617b389aba397c35f580fe03 /source3/winbindd/winbindd_getgrgid.c | |
parent | 06a2ff579692ea062944e5bd90d3526327004954 (diff) | |
download | samba-44cc1656276d99816614408b5cd846e6a57eacf0.tar.gz samba-44cc1656276d99816614408b5cd846e6a57eacf0.tar.bz2 samba-44cc1656276d99816614408b5cd846e6a57eacf0.zip |
s3: Use tevent_req_ntstatus properly in a few places
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue May 10 13:11:10 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/winbindd/winbindd_getgrgid.c')
-rw-r--r-- | source3/winbindd/winbindd_getgrgid.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/winbindd/winbindd_getgrgid.c b/source3/winbindd/winbindd_getgrgid.c index 80db309060..5edecffcb2 100644 --- a/source3/winbindd/winbindd_getgrgid.c +++ b/source3/winbindd/winbindd_getgrgid.c @@ -68,8 +68,7 @@ static void winbindd_getgrgid_gid2sid_done(struct tevent_req *subreq) status = wb_gid2sid_recv(subreq, &state->sid); TALLOC_FREE(subreq); - if (!NT_STATUS_IS_OK(status)) { - tevent_req_nterror(req, status); + if (tevent_req_nterror(req, status)) { return; } @@ -92,8 +91,7 @@ static void winbindd_getgrgid_done(struct tevent_req *subreq) status = wb_getgrsid_recv(subreq, state, &state->domname, &state->name, &state->gid, &state->members); 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); |