]> git.armaanb.net Git - opendoas.git/commitdiff
clear the password even after a mismatch
authortedu <tedu>
Thu, 17 Jan 2019 05:35:35 +0000 (05:35 +0000)
committerDuncaen <mail@duncano.de>
Wed, 30 Jan 2019 22:19:17 +0000 (23:19 +0100)
doas.c

diff --git a/doas.c b/doas.c
index a32713623b29bfe54c5ca07415ab1d53b12546cd..6223aff219168fa87f9a38909f9f072535114c21 100644 (file)
--- 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");