artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f59b47d
)
zero random buf for sysctl too, just in case
author
tedu
<tedu@openbsd.org>
Thu, 17 Jul 2014 13:44:21 +0000
(13:44 +0000)
committer
tedu
<tedu@openbsd.org>
Thu, 17 Jul 2014 13:44:21 +0000
(13:44 +0000)
sys/kern/kern_sysctl.c
patch
|
blob
|
history
diff --git
a/sys/kern/kern_sysctl.c
b/sys/kern/kern_sysctl.c
index
d89199d
..
f3405cd
100644
(file)
--- a/
sys/kern/kern_sysctl.c
+++ b/
sys/kern/kern_sysctl.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: kern_sysctl.c,v 1.25
8 2014/07/13 16:41:21 claudio Exp $
*/
+/* $OpenBSD: kern_sysctl.c,v 1.25
9 2014/07/17 13:44:21 tedu Exp $
*/
/* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */
/*-
@@
-423,6
+423,7
@@
kern_sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp,
arc4random_buf(buf, *oldlenp);
if ((error = copyout(buf, oldp, *oldlenp)))
return (error);
+ explicit_bzero(buf, sizeof(buf));
}
return (0);
}