mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue