summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_sid_to_gid.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/winbindd/winbindd_sid_to_gid.c')
-rw-r--r--source3/winbindd/winbindd_sid_to_gid.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/winbindd/winbindd_sid_to_gid.c b/source3/winbindd/winbindd_sid_to_gid.c
index b0b0e6e211..df44ed8d6b 100644
--- a/source3/winbindd/winbindd_sid_to_gid.c
+++ b/source3/winbindd/winbindd_sid_to_gid.c
@@ -72,8 +72,7 @@ static void winbindd_sid_to_gid_done(struct tevent_req *subreq)
status = wb_sid2gid_recv(subreq, &state->gid);
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);