summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,