summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_getgrgid.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-08-27 23:27:37 +0200
committerVolker Lendecke <vl@samba.org>2009-08-29 19:42:27 +0200
commit9b5ad55de11d479f9127861f0ef485d7c9972312 (patch)
treec4058a173a5d2ed538721831404a25aae8e76b01 /source3/winbindd/winbindd_getgrgid.c
parent8b9085472dc6a3e8d0dc84e3cbad0ba057fcec83 (diff)
downloadsamba-9b5ad55de11d479f9127861f0ef485d7c9972312.tar.gz
s3:winbind: Add some missing error checks
Diffstat (limited to 'source3/winbindd/winbindd_getgrgid.c')
-rw-r--r--source3/winbindd/winbindd_getgrgid.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_getgrgid.c b/source3/winbindd/winbindd_getgrgid.c
index 4feebdb4f6e..80db3090607 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;