summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/winbindd_getgrgid.c3
-rw-r--r--source3/winbindd/winbindd_getgrnam.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_getgrgid.c b/source3/winbindd/winbindd_getgrgid.c
index 4feebdb4f6..80db309060 100644
--- a/source3/winbindd/winbindd_getgrgid.c
+++ b/source3/winbindd/winbindd_getgrgid.c
@@ -122,6 +122,9 @@ NTSTATUS winbindd_getgrgid_recv(struct tevent_req *req,
status = winbindd_print_groupmembers(state->members, response,
&num_members, &buf);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
response->data.gr.num_gr_mem = (uint32)num_members;
diff --git a/source3/winbindd/winbindd_getgrnam.c b/source3/winbindd/winbindd_getgrnam.c
index d55796513f..d888393399 100644
--- a/source3/winbindd/winbindd_getgrnam.c
+++ b/source3/winbindd/winbindd_getgrnam.c
@@ -178,6 +178,9 @@ NTSTATUS winbindd_getgrnam_recv(struct tevent_req *req,
status = winbindd_print_groupmembers(state->members, response,
&num_members, &buf);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
response->data.gr.num_gr_mem = (uint32)num_members;