summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsimon <simon@FreeBSD.org>2007-11-29 16:06:12 +0000
committersimon <simon@FreeBSD.org>2007-11-29 16:06:12 +0000
commitab5beb74a63329a51e29c1d7431c6ba2762ae85e (patch)
tree036bd0c0cda4b732c2ebda99a7df194e96d8cf31
parentdf297799bda528d9bf7deeff06ea54a16f754e86 (diff)
downloadFreeBSD-src-ab5beb74a63329a51e29c1d7431c6ba2762ae85e.zip
FreeBSD-src-ab5beb74a63329a51e29c1d7431c6ba2762ae85e.tar.gz
Correct a random value disclosure in random(4).
Security: FreeBSD-SA-07:09.random
-rw-r--r--sys/dev/random/yarrow.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/random/yarrow.c b/sys/dev/random/yarrow.c
index 010de0c..6f631bb 100644
--- a/sys/dev/random/yarrow.c
+++ b/sys/dev/random/yarrow.c
@@ -296,6 +296,7 @@ random_yarrow_read(void *buf, int count)
random_state.outputblocks = 0;
}
retval += (int)tomove;
+ cur = 0;
}
}
else {
OpenPOWER on IntegriCloud