diff options
author | Damien Miller <djm@mindrot.org> | 2000-05-31 03:24:34 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-05-31 03:24:34 +0200 |
commit | 1ea8ac7b90c2002ee6041fb90e1f94c7f8a94608 (patch) | |
tree | f65bfc285e486ed29900a2b049f13185cb610c40 /entropy.c | |
parent | - Cleanup of auth.c, login.c and fake-* (diff) | |
download | openssh-1ea8ac7b90c2002ee6041fb90e1f94c7f8a94608.tar.xz openssh-1ea8ac7b90c2002ee6041fb90e1f94c7f8a94608.zip |
- Fix EGD read bug by IWAMURO Motonori <iwa@mmp.fujitsu.co.jp>
update credits
Diffstat (limited to '')
-rw-r--r-- | entropy.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -35,7 +35,7 @@ #include <openssl/rand.h> #include <openssl/sha.h> -RCSID("$Id: entropy.c,v 1.11 2000/05/17 12:08:30 damien Exp $"); +RCSID("$Id: entropy.c,v 1.12 2000/05/31 01:24:34 damien Exp $"); #ifdef EGD_SOCKET #ifndef offsetof @@ -82,8 +82,6 @@ void get_random_bytes(unsigned char *buf, int len) c = atomicio(read, egd_socket, buf, len); if (c <= 0) fatal("Couldn't read from EGD socket \"%s\": %s", EGD_SOCKET, strerror(errno)); - - close(EGD_SOCKET); } #else /* !EGD_SOCKET */ #ifdef RANDOM_POOL |