From 3e1998672c660e644b17f5f85a2c07376d9254a9 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 21 Jun 2014 02:08:35 +0000 Subject: hash in correct pointer --- lib/libcrypto/crypto/getentropy_linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 @@ -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; -- cgit v1.2.3