summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2014-06-25 17:04:19 +0000
committerBob Beck <beck@cvs.openbsd.org>2014-06-25 17:04:19 +0000
commit6529176c72b040efce83d3434ef3e403468be880 (patch)
tree2ce0cec7622194fe0ce2c887436fde1b57ff1f27
parent9a42a6cbeb4e53fd2c9c9749dac577332a6735dc (diff)
AT_BASE returns us the *address* of the start of ld.so, so
use the address, not what it points to (which is always the same) ok deraadt@
-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 2bfff8a0838..17d1094811e 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.12 2014/06/25 16:45:49 beck Exp $ */
+/* $OpenBSD: getentropy_linux.c,v 1.13 2014/06/25 17:04:18 beck Exp $ */
/*
* Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org>
@@ -465,7 +465,7 @@ getentropy_fallback(void *buf, size_t len)
#ifdef AT_BASE
p = (char *) getauxval(AT_BASE);
if (p)
- HR(p, sizeof(p));
+ HD(p, sizeof(p));
#endif
SHA512_Final(results, &ctx);