Page MenuHomeFreeBSD

D46921.1792464668.diff
No OneTemporary

Size
558 B
Referenced Files
None
Subscribers
None

D46921.1792464668.diff

diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c
--- a/usr.sbin/mountd/mountd.c
+++ b/usr.sbin/mountd/mountd.c
@@ -3653,8 +3653,6 @@
ngroups = NGROUPS_MAX + 1;
}
- if (ngroups > NGROUPS_MAX)
- ngroups = NGROUPS_MAX;
if (ngroups > SMALLNGROUPS)
cr->cr_groups = malloc(ngroups * sizeof(gid_t));
cr->cr_ngroups = ngroups;
@@ -3688,7 +3686,7 @@
} else {
group = name_ul;
}
- if (cr->cr_ngroups == NGROUPS_MAX) {
+ if (cr->cr_ngroups == NGROUPS_MAX + 1) {
syslog(LOG_ERR, "too many groups");
break;
}

File Metadata

Mime Type
text/plain
Expires
Tue, Oct 20, 2:51 AM (22 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30534138
Default Alt Text
D46921.1792464668.diff (558 B)

Event Timeline