X-Git-Url: https://git.armaanb.net/?p=opendoas.git;a=blobdiff_plain;f=doas.c;h=6223aff219168fa87f9a38909f9f072535114c21;hp=a32713623b29bfe54c5ca07415ab1d53b12546cd;hb=37bd6612bdffabe6d8a588b391bd353c39497abb;hpb=39c5d01f30a99d94dc89411a8e1ab103e2fc3074 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");