Rick Macklem 38b45b65cd Fix a bug where XU_NGROUPS + 1 groups might be copied.
r361780 fixed the code so that it would only remove the duplicate when
it actually existed. However, that might have resulted in XU_NGROUPS + 1
groups being copied, running off the end of the array. This patch fixes
the problem.

Spotted during code inspection for other mountd changes.

MFC after:	2 weeks
2020-06-09 05:01:23 +00:00
..
2020-02-19 12:49:49 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2018-08-11 13:23:09 +00:00
2020-05-21 01:55:35 +00:00
2020-05-01 01:31:19 +00:00
2019-08-13 20:06:55 +00:00
2020-01-10 22:20:23 +00:00
2020-06-01 01:25:19 +00:00
2019-03-14 14:34:36 +00:00
2020-04-28 16:09:22 +00:00
2020-03-30 03:26:52 +00:00
2019-12-04 16:56:11 +00:00
2019-02-04 21:28:25 +00:00
2020-04-10 23:10:28 +00:00
2018-05-28 09:41:44 +00:00
2017-12-28 05:34:04 +00:00
2019-05-04 02:09:30 +00:00
2020-01-30 18:34:08 +00:00
2018-10-22 02:34:10 +00:00
2018-05-19 20:57:22 +00:00
2019-12-11 17:37:53 +00:00
2020-04-15 17:11:44 +00:00
2018-06-17 17:31:16 +00:00
2020-04-06 23:16:05 +00:00
2020-04-06 23:16:05 +00:00
2020-04-06 23:16:05 +00:00
2019-12-11 17:37:53 +00:00
2019-03-05 02:53:41 +00:00
2019-12-11 17:37:53 +00:00
2020-02-19 12:49:49 +00:00
2019-12-11 17:37:53 +00:00
2020-02-13 15:28:56 +00:00
2019-04-22 17:52:46 +00:00
2020-03-23 14:44:23 +00:00
2019-12-11 17:37:53 +00:00
2020-02-10 17:16:41 +00:00
2020-03-31 16:47:15 +00:00
2019-11-21 01:24:49 +00:00
2020-04-06 23:16:05 +00:00
2020-03-09 20:46:43 +00:00
2019-05-24 05:34:21 +00:00
2019-05-24 05:34:21 +00:00
2018-07-24 20:20:17 +00:00