opendoas

my fork of doas with custom prompt
git clone git://git.kocotian.pl/opendoas.git
Log | Files | Refs | README | LICENSE

commit 38e072b353f5b1325bbf52dfb759fe49ff6ef0f7
parent 55c5e6bdb8fb360553420550133775422204a55b
Author: Duncaen <mail@duncano.de>
Date:   Wed, 30 Jan 2019 23:35:25 +0100

shadow: clear phassphrase earlier

Diffstat:
Mshadow.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/shadow.c b/shadow.c @@ -70,14 +70,12 @@ shadowauth(const char *myname, int persist) explicit_bzero(rbuf, sizeof(rbuf)); errx(1, "Authorization failed"); } + explicit_bzero(rbuf, sizeof(rbuf)); if (strcmp(encrypted, hash) != 0) { - explicit_bzero(rbuf, sizeof(rbuf)); syslog(LOG_AUTHPRIV | LOG_NOTICE, "failed auth for %s", myname); errx(1, "Authorization failed"); } - explicit_bzero(rbuf, sizeof(rbuf)); - #ifdef USE_TIMESTAMP good: if (fd != -1) {