git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1fa394
)
s3: Fix a getgrent crash with many groups
author
Volker Lendecke
<vl@samba.org>
Wed, 3 Nov 2010 12:08:37 +0000
(13:08 +0100)
committer
Karolin Seeger
<kseeger@samba.org>
Sat, 5 Mar 2011 13:34:34 +0000
(14:34 +0100)
Fix bug #7774.
(cherry picked from commit
d070359ca01c1b340a610dd2cf9ce60b33c256e4
)
source3/winbindd/winbindd_getgrent.c
patch
|
blob
|
history
diff --git
a/source3/winbindd/winbindd_getgrent.c
b/source3/winbindd/winbindd_getgrent.c
index a3ea8dd0dfb9eb49ae8289f6e3d6994fb7767e02..21da75b4c52dda5747b1a54c37c1ff15df4a3503 100644
(file)
--- 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,