summaryrefslogtreecommitdiff
path: root/source3
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
parent8b9085472dc6a3e8d0dc84e3cbad0ba057fcec83 (diff)
downloadsamba-9b5ad55de11d479f9127861f0ef485d7c9972312.tar.gz
samba-9b5ad55de11d479f9127861f0ef485d7c9972312.tar.bz2
samba-9b5ad55de11d479f9127861f0ef485d7c9972312.zip
s3:winbind: Add some missing error checks
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;