[libcasper] Use explicit_bzero instead of memset to clear pwd struct
Submitted by: David Carlier <devnexen@gmail.com> Differential Revision: https://reviews.freebsd.org/D16015
This commit is contained in:
parent
3d3d017834
commit
00e9473388
@ -100,7 +100,7 @@ passwd_unpack(const nvlist_t *nvl, struct passwd *pwd, char *buffer,
|
||||
if (!nvlist_exists_string(nvl, "pw_name"))
|
||||
return (EINVAL);
|
||||
|
||||
memset(pwd, 0, sizeof(*pwd));
|
||||
explicit_bzero(pwd, sizeof(*pwd));
|
||||
|
||||
error = passwd_unpack_string(nvl, "pw_name", &pwd->pw_name, &buffer,
|
||||
&bufsize);
|
||||
|
Loading…
x
Reference in New Issue
Block a user