libcasper: using explicit_bzero in cap_grp service
Please notice that we still don't clean information in nvlist structures. Submitted by: David CARLIER <devnexen@gmail.com> Differential Revision: https://reviews.freebsd.org/D16777
This commit is contained in:
parent
577dff6a8d
commit
d9c2248dd5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=340142
@ -157,7 +157,7 @@ group_unpack(const nvlist_t *nvl, struct group *grp, char *buffer,
|
||||
if (!nvlist_exists_string(nvl, "gr_name"))
|
||||
return (EINVAL);
|
||||
|
||||
memset(grp, 0, sizeof(*grp));
|
||||
explicit_bzero(grp, sizeof(*grp));
|
||||
|
||||
error = group_unpack_string(nvl, "gr_name", &grp->gr_name, &buffer,
|
||||
&bufsize);
|
||||
|
Loading…
Reference in New Issue
Block a user