[git] GCRYPT - branch, master, updated. libgcrypt-1.8.1-141-g17f246c
by NIIBE Yutaka
cvs at cvs.gnupg.org
Tue Jan 15 07:50:33 CET 2019
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU crypto library".
The branch, master has been updated
via 17f246c7044ab9ed236f6ec73fc126654257f0f9 (commit)
from 2677d7d482bf2d078c1dce64854747c5b148924b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 17f246c7044ab9ed236f6ec73fc126654257f0f9
Author: NIIBE Yutaka <gniibe at fsij.org>
Date: Tue Jan 15 15:48:25 2019 +0900
random: Fix previous commit for getentropy function.
* random/rndlinux.c [__NR_getrandom] (_gcry_rndlinux_gather_random):
Check return value only for use of syscall.
--
The function returns 0 on success.
Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>
diff --git a/random/rndlinux.c b/random/rndlinux.c
index d71261c..04e2a46 100644
--- a/random/rndlinux.c
+++ b/random/rndlinux.c
@@ -281,9 +281,11 @@ _gcry_rndlinux_gather_random (void (*add)(const void*, size_t,
if (ret == -1)
log_fatal ("unexpected error from getentropy: %s\n",
strerror (errno));
+#ifdef __NR_getrandom
else if (ret != nbytes)
log_fatal ("getentropy returned only"
" %ld of %zu requested bytes\n", ret, nbytes);
+#endif
(*add)(buffer, nbytes, origin);
length -= nbytes;
-----------------------------------------------------------------------
Summary of changes:
random/rndlinux.c | 2 ++
1 file changed, 2 insertions(+)
hooks/post-receive
--
The GNU crypto library
http://git.gnupg.org
_______________________________________________
Gnupg-commits mailing list
Gnupg-commits at gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-commits
More information about the Gcrypt-devel
mailing list