aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortedu <tedu>2019-01-17 05:35:35 +0000
committerDuncaen <mail@duncano.de>2019-01-30 23:19:17 +0100
commit37bd6612bdffabe6d8a588b391bd353c39497abb (patch)
tree8e8abafec9c0e68620aa260c8730fcc09c1ca459
parent39c5d01f30a99d94dc89411a8e1ab103e2fc3074 (diff)
downloadopendoas-37bd6612bdffabe6d8a588b391bd353c39497abb.tar.gz
clear the password even after a mismatch
-rw-r--r--doas.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/doas.c b/doas.c
index a327136..6223aff 100644
--- a/doas.c
+++ b/doas.c
@@ -234,6 +234,7 @@ authuser(char *myname, char *login_style, int persist)
errx(1, "a tty is required");
}
if (!auth_userresponse(as, response, 0)) {
+ explicit_bzero(rbuf, sizeof(rbuf));
syslog(LOG_AUTHPRIV | LOG_NOTICE,
"failed auth for %s", myname);
errx(1, "Authorization failed");