commit b6e4a367e2605da98d418bebcd44a2d0f913dab1
parent 5b9ea69b08a15dcad0ce2422289d86d459502197
Author: Jakob Kramer <jakob.kramer@gmx.de>
Date: Wed, 30 Apr 2014 14:15:26 +0200
su: zero out encrypted passwords
Diffstat:
| M | su.c | | | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)
diff --dropbox a/su.c b/su.c
@@ -86,6 +86,8 @@ main(int argc, char *argv[])
if (strcmp(cryptpass, spw->sp_pwdp) != 0)
eprintf(randreply());
+ explicit_bzero(cryptpass, strlen(cryptpass));
+ explicit_bzero(spw, sizeof *spw);
}
errno = 0;