summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2014-06-26 13:48:11 +0000
committerderaadt <deraadt@openbsd.org>2014-06-26 13:48:11 +0000
commit900d1301967f8f362bcf664baa314eaa59006751 (patch)
treef7fbf5bfc995c2e730cf590fb50269c11a91ffe5
parentCalling in{6,}_purgeaddr() is not enough to remove an address from (diff)
downloadwireguard-openbsd-900d1301967f8f362bcf664baa314eaa59006751.tar.xz
wireguard-openbsd-900d1301967f8f362bcf664baa314eaa59006751.zip
fix HD() misuse; from brent cook
-rw-r--r--lib/libcrypto/arc4random/getentropy_linux.c4
-rw-r--r--lib/libcrypto/crypto/getentropy_linux.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libcrypto/arc4random/getentropy_linux.c b/lib/libcrypto/arc4random/getentropy_linux.c
index 17d1094811e..78d0d786a65 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.13 2014/06/25 17:04:18 beck Exp $ */
+/* $OpenBSD: getentropy_linux.c,v 1.14 2014/06/26 13:48:11 deraadt 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)
- HD(p, sizeof(p));
+ HD(p);
#endif
SHA512_Final(results, &ctx);
diff --git a/lib/libcrypto/crypto/getentropy_linux.c b/lib/libcrypto/crypto/getentropy_linux.c
index 17d1094811e..78d0d786a65 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.13 2014/06/25 17:04:18 beck Exp $ */
+/* $OpenBSD: getentropy_linux.c,v 1.14 2014/06/26 13:48:11 deraadt 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)
- HD(p, sizeof(p));
+ HD(p);
#endif
SHA512_Final(results, &ctx);