diff options
author | Gleydson Soares <gsoares@cvs.openbsd.org> | 2016-01-24 13:19:22 +0000 |
---|---|---|
committer | Gleydson Soares <gsoares@cvs.openbsd.org> | 2016-01-24 13:19:22 +0000 |
commit | 1619d232e58aa20ad907183665bcdaae056c28a5 (patch) | |
tree | 4f30991c952fb906afdee551a74e47db51d9a432 /usr.bin/doas/doas.c | |
parent | 0f65cfd18845883ed2931f45a838c159809ec235 (diff) |
make sure of cleaning rbuf with explicit_bzero(3)
OK tedu@
Diffstat (limited to 'usr.bin/doas/doas.c')
-rw-r--r-- | usr.bin/doas/doas.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/doas/doas.c b/usr.bin/doas/doas.c index e71b221a9dc..d3dfe9bb414 100644 --- a/usr.bin/doas/doas.c +++ b/usr.bin/doas/doas.c @@ -1,4 +1,4 @@ -/* $OpenBSD: doas.c,v 1.48 2015/12/08 14:45:36 tedu Exp $ */ +/* $OpenBSD: doas.c,v 1.49 2016/01/24 13:19:21 gsoares Exp $ */ /* * Copyright (c) 2015 Ted Unangst <tedu@openbsd.org> * @@ -434,6 +434,7 @@ main(int argc, char **argv, char **envp) "failed auth for %s", myname); errc(1, EPERM, NULL); } + explicit_bzero(rbuf, sizeof(rbuf)); } if (pledge("stdio rpath getpw exec id", NULL) == -1) |