Earlier code was most probably correct, but it is best to be safe than sorry
when dealing with confidental data removals.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
/* Wipe the name - some people mistype their password here. */
/* (Of course we are too late, but perhaps this helps a little...) */
+#ifdef HAVE_EXPLICIT_BZERO
+ explicit_bzero(p, strlen(p));
+#else
while (*p)
*p++ = ' ';
+#endif
}
close_all_fds(wanted_fds, ARRAY_SIZE(wanted_fds));