[Pcsclite-git-commit] [PCSC] 03/10: main(): Init the PRNG from a safe place
Ludovic Rousseau
rousseau at moszumanska.debian.org
Fri Aug 5 15:48:04 UTC 2016
This is an automated email from the git hooks/post-receive script.
rousseau pushed a commit to branch master
in repository PCSC.
commit 8e820796b338cb1048c51ec462446f61a3979835
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date: Thu Aug 4 11:29:49 2016 +0200
main(): Init the PRNG from a safe place
The PRNG init is now done before any client can connect to the daemon.
Thanks to Maksim Ivanov for the idea
"[Pcsclite-muscle] Possible generation of duplicate SCARDHANDLE"
http://lists.alioth.debian.org/pipermail/pcsclite-muscle/Week-of-Mon-20160801/000686.html
---
src/pcscdaemon.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/pcscdaemon.c b/src/pcscdaemon.c
index 099b18c..6803b67 100644
--- a/src/pcscdaemon.c
+++ b/src/pcscdaemon.c
@@ -309,6 +309,9 @@ int main(int argc, char **argv)
return EXIT_FAILURE;
}
+ /* Init the PRNG */
+ SYS_InitRandom();
+
/*
* By default we create a daemon (not connected to any output)
* so log to syslog to have error messages.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/PCSC.git
More information about the Pcsclite-cvs-commit
mailing list