diff options
| author | Rick Macklem <rmacklem@FreeBSD.org> | 2020-06-09 05:01:23 +0000 |
|---|---|---|
| committer | Rick Macklem <rmacklem@FreeBSD.org> | 2020-06-09 05:01:23 +0000 |
| commit | 38b45b65cdaac3cf3b531aecb77fd5d8085a2911 (patch) | |
| tree | 3c4244999f3645e5707a87132b647cb9ff697573 /usr.sbin/mountd | |
| parent | 3e5fae34fc49099effbd315f053841392da0f026 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/mountd')
| -rw-r--r-- | usr.sbin/mountd/mountd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c index a6450513d9c0f..e283a8e1aad33 100644 --- a/usr.sbin/mountd/mountd.c +++ b/usr.sbin/mountd/mountd.c @@ -3481,6 +3481,8 @@ parsecred(char *namelist, struct xucred *cr) cr->cr_groups[cnt - 1] = groups[cnt]; } else { cr->cr_ngroups = ngroups; + if (cr->cr_ngroups > XU_NGROUPS) + cr->cr_ngroups = XU_NGROUPS; for (cnt = 1; cnt < ngroups; cnt++) cr->cr_groups[cnt] = groups[cnt]; } |
