diff options
author | Damien Miller <djm@mindrot.org> | 2000-05-31 11:24:34 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-05-31 11:24:34 +1000 |
commit | 1ea8ac7b90c2002ee6041fb90e1f94c7f8a94608 (patch) | |
tree | f65bfc285e486ed29900a2b049f13185cb610c40 /entropy.c | |
parent | 2f6a0ad191af2e0e67c66bdc5dfc84d9a97bf12c (diff) |
- Fix EGD read bug by IWAMURO Motonori <iwa@mmp.fujitsu.co.jp>
update credits
Diffstat (limited to 'entropy.c')
-rw-r--r-- | entropy.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -35,7 +35,7 @@ | |||
35 | #include <openssl/rand.h> | 35 | #include <openssl/rand.h> |
36 | #include <openssl/sha.h> | 36 | #include <openssl/sha.h> |
37 | 37 | ||
38 | RCSID("$Id: entropy.c,v 1.11 2000/05/17 12:08:30 damien Exp $"); | 38 | RCSID("$Id: entropy.c,v 1.12 2000/05/31 01:24:34 damien Exp $"); |
39 | 39 | ||
40 | #ifdef EGD_SOCKET | 40 | #ifdef EGD_SOCKET |
41 | #ifndef offsetof | 41 | #ifndef offsetof |
@@ -82,8 +82,6 @@ void get_random_bytes(unsigned char *buf, int len) | |||
82 | c = atomicio(read, egd_socket, buf, len); | 82 | c = atomicio(read, egd_socket, buf, len); |
83 | if (c <= 0) | 83 | if (c <= 0) |
84 | fatal("Couldn't read from EGD socket \"%s\": %s", EGD_SOCKET, strerror(errno)); | 84 | fatal("Couldn't read from EGD socket \"%s\": %s", EGD_SOCKET, strerror(errno)); |
85 | |||
86 | close(EGD_SOCKET); | ||
87 | } | 85 | } |
88 | #else /* !EGD_SOCKET */ | 86 | #else /* !EGD_SOCKET */ |
89 | #ifdef RANDOM_POOL | 87 | #ifdef RANDOM_POOL |