summaryrefslogtreecommitdiff
path: root/lib/libcrypto/crypto
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2014-06-21 02:08:35 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2014-06-21 02:08:35 +0000
commit3e1998672c660e644b17f5f85a2c07376d9254a9 (patch)
tree67d9676aeea2f9ae22b820905cb43dbd7f46d566 /lib/libcrypto/crypto
parenta9951d5f8c07fa722ecf157dd9f89c89e1bb8782 (diff)
hash in correct pointer
Diffstat (limited to 'lib/libcrypto/crypto')
-rw-r--r--lib/libcrypto/crypto/getentropy_linux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/crypto/getentropy_linux.c b/lib/libcrypto/crypto/getentropy_linux.c
index 39bd57a33ab..27b9e9ad08c 100644
--- a/lib/libcrypto/crypto/getentropy_linux.c
+++ b/lib/libcrypto/crypto/getentropy_linux.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getentropy_linux.c,v 1.4 2014/06/20 20:27:22 beck Exp $ */
+/* $OpenBSD: getentropy_linux.c,v 1.5 2014/06/21 02:08:34 deraadt Exp $ */
/*
* Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org>
@@ -352,7 +352,7 @@ getentropy_fallback(void *buf, size_t len)
for (m = 0; m < sizeof mm/sizeof(mm[0]); m++) {
HASHX(mm[m].p = mmap(NULL, mm[m].npg * pgsiz,
PROT_READ|PROT_WRITE,
- MAP_PRIVATE|MAP_ANON, -1, (off_t)0), p);
+ MAP_PRIVATE|MAP_ANON, -1, (off_t)0), mm[m].p);
if (mm[m].p != MAP_FAILED) {
char *mp;