Replace another memset() with explicit_bzero() since the goal is the reason

why we have explicit_bzero().
OK matthieu@
This commit is contained in:
claudio
2023-12-14 09:46:10 +00:00
parent f6e6877b93
commit 77f3ff527f

View File

@@ -2659,7 +2659,7 @@ getPassword(void)
#endif
/* clear plaintext password so you can not grunge around
/dev/kmem */
(void) memset((char *) buffer, 0, sizeof (buffer));
explicit_bzero(buffer, sizeof (buffer));
if (done) {
#ifdef USE_SOUND