summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_getgrent.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-11-03 13:08:37 +0100
committerVolker Lendecke <vlendec@samba.org>2010-11-03 12:58:49 +0000
commit80c3364cd33a96666d83f26476faa097c3494c1e (patch)
tree133440a2b1431d561e65d31e03318d53f9618a97 /source3/winbindd/winbindd_getgrent.c
parenta12c3305b328d653a19cb17fcf1d47e3ab9b0898 (diff)
downloadsamba-80c3364cd33a96666d83f26476faa097c3494c1e.tar.gz
samba-80c3364cd33a96666d83f26476faa097c3494c1e.tar.bz2
samba-80c3364cd33a96666d83f26476faa097c3494c1e.zip
s3: Fix a getgrent crash with many groups
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Nov 3 12:58:49 UTC 2010 on sn-devel-104
Diffstat (limited to 'source3/winbindd/winbindd_getgrent.c')
-rw-r--r--source3/winbindd/winbindd_getgrent.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_getgrent.c b/source3/winbindd/winbindd_getgrent.c
index a3ea8dd0df..21da75b4c5 100644
--- a/source3/winbindd/winbindd_getgrent.c
+++ b/source3/winbindd/winbindd_getgrent.c
@@ -187,6 +187,7 @@ NTSTATUS winbindd_getgrent_recv(struct tevent_req *req,
if (result == NULL) {
return NT_STATUS_NO_MEMORY;
}
+ state->groups = (struct winbindd_gr *)result;
for (i=0; i<state->num_groups; i++) {
memcpy(result + base_memberofs + state->groups[i].gr_mem_ofs,