diff options
author | Bret Lambert <blambert@cvs.openbsd.org> | 2014-04-14 07:18:06 +0000 |
---|---|---|
committer | Bret Lambert <blambert@cvs.openbsd.org> | 2014-04-14 07:18:06 +0000 |
commit | f0a6c745cb5a43a13a9359749cc19a4cb11090eb (patch) | |
tree | 9360d3e57b72f7dee9b01b321b960884f825cb08 /sbin | |
parent | 1e59526f27f08373b01e068658a08a00a03c4281 (diff) |
Fix the following idiom in the following way:
arc4random_buf(seed, sizeof(seed));
RAND_seed(seed, sizeof(seed));
+ explicit_bzero(seed, sizeof(seed));
ok reyk@
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/iked/proc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/iked/proc.c b/sbin/iked/proc.c index dd30e4b6e92..69404434b5f 100644 --- a/sbin/iked/proc.c +++ b/sbin/iked/proc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: proc.c,v 1.11 2014/02/14 10:23:43 benno Exp $ */ +/* $OpenBSD: proc.c,v 1.12 2014/04/14 07:18:05 blambert Exp $ */ /* * Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org> @@ -262,6 +262,7 @@ proc_run(struct privsep *ps, struct privsep_proc *p, arc4random_buf(seed, sizeof(seed)); RAND_seed(seed, sizeof(seed)); + explicit_bzero(seed, sizeof(seed)); if (p->p_id == PROC_CONTROL) { TAILQ_INIT(&ctl_conns); |