summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_getgrnam.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_getgrnam.c
parent8b9085472dc6a3e8d0dc84e3cbad0ba057fcec83 (diff)
downloadsamba-9b5ad55de11d479f9127861f0ef485d7c9972312.tar.gz
s3:winbind: Add some missing error checks
Diffstat (limited to 'source3/winbindd/winbindd_getgrnam.c')
-rw-r--r--source3/winbindd/winbindd_getgrnam.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_getgrnam.c b/source3/winbindd/winbindd_getgrnam.c
index d55796513fa..d8883933996 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;