summaryrefslogtreecommitdiff
path: root/lib/libcrypto/arc4random
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2014-06-25 16:45:50 +0000
committerBob Beck <beck@cvs.openbsd.org>2014-06-25 16:45:50 +0000
commit09bc60153d42172e3e457da2fc4b38a80088c197 (patch)
treee02c46592b5510efeaaee55bce12397b505416c1 /lib/libcrypto/arc4random
parentfc1b280fee802bcd0e6d9c10a32bd325dfe909b7 (diff)
get the page of data at AT_SYSINFO_EHDR
ok deraadt@
Diffstat (limited to 'lib/libcrypto/arc4random')
-rw-r--r--lib/libcrypto/arc4random/getentropy_linux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/arc4random/getentropy_linux.c b/lib/libcrypto/arc4random/getentropy_linux.c
index d231bb9601a..2bfff8a0838 100644
--- a/lib/libcrypto/arc4random/getentropy_linux.c
+++ b/lib/libcrypto/arc4random/getentropy_linux.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getentropy_linux.c,v 1.11 2014/06/25 16:31:03 beck Exp $ */
+/* $OpenBSD: getentropy_linux.c,v 1.12 2014/06/25 16:45:49 beck Exp $ */
/*
* Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org>
@@ -460,7 +460,7 @@ getentropy_fallback(void *buf, size_t len)
#ifdef AT_SYSINFO_EHDR
p = (char *) getauxval(AT_SYSINFO_EHDR);
if (p)
- HR(p, sizeof(p));
+ HR(p, pgs);
#endif
#ifdef AT_BASE
p = (char *) getauxval(AT_BASE);