diff options
author | Volker Lendecke <vl@samba.org> | 2010-11-03 13:08:37 +0100 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2010-11-03 12:58:49 +0000 |
commit | 80c3364cd33a96666d83f26476faa097c3494c1e (patch) | |
tree | 133440a2b1431d561e65d31e03318d53f9618a97 /source3 | |
parent | a12c3305b328d653a19cb17fcf1d47e3ab9b0898 (diff) | |
download | samba-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')
-rw-r--r-- | source3/winbindd/winbindd_getgrent.c | 1 |
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, |