Log Message:
-----------
cmd/lxc-user-nic: prevent OOB read in name_is_in_groupnames
We need to be more careful when iterating an array of strings
in name_is_in_groupnames. First of all, groupnames can be NULL
(this was checked), but then, we need to check for *groupnames
instead of groupnames in while-condition.
Bug was here since lxc-2.0.0.
Fixes: af59ff2eede7 ("Changed parsing of allotments. Now parses top-to-bottom regardless of user or group")
Signed-off-by: Alexander Mikhalitsyn <aleksandr....@futurfusion.io>