From 69617746f2c39b745571a5a6b231db0d3304df91 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 3 Nov 2010 13:08:37 +0100 Subject: [PATCH] s3: Fix a getgrent crash with many groups --- 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 a3ea8dd..21da75b 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; inum_groups; i++) { memcpy(result + base_memberofs + state->groups[i].gr_mem_ofs, -- 1.5.6.5