diff options
author | Ulf Möller <ulf@openssl.org> | 2000-02-25 14:16:43 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 2000-02-25 14:16:43 +0000 |
commit | fea217f96f1396ee83341f596ecc083f6a91dfbf (patch) | |
tree | b01e1110cd2001f147edb4b736a48ac99b2c138f /crypto | |
parent | cacbb51ee12c1e7bf05bce83c63832d1f7554535 (diff) | |
download | openssl-fea217f96f1396ee83341f596ecc083f6a91dfbf.tar.gz |
EGD bugfix.
Submitted by: Lutz Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/rand/rand_egd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/rand/rand_egd.c b/crypto/rand/rand_egd.c index 3a081d4f62..b640469faf 100644 --- a/crypto/rand/rand_egd.c +++ b/crypto/rand/rand_egd.c @@ -96,6 +96,7 @@ int RAND_egd(const char *path) buf[1] = 255; write(fd, buf, 2); if (read(fd, buf, 1) != 1) goto err; + if (buf[0] == 0) goto err; num = read(fd, buf, 255); if (num < 1) goto err; RAND_seed(buf, num); |