priv_validgroup: do not read more than IF_NAMESIZE chars of name
authormillert <millert@openbsd.org>
Thu, 15 Dec 2022 19:36:45 +0000 (19:36 +0000)
committermillert <millert@openbsd.org>
Thu, 15 Dec 2022 19:36:45 +0000 (19:36 +0000)
commit1c6718c9e640f01a022c20c6f7fe907a4acd87c3
tree780ee533f6372ec5a198aa82d97c3c104f7a14ce
parent469213ebdfec10450619df35298bde2f6d7f1225
priv_validgroup: do not read more than IF_NAMESIZE chars of name
Store the length locally instead of computing it multiple times.
OK dv@, previous version OK deraadt@
usr.sbin/vmd/priv.c