summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rand/rand_egd.c
diff options
context:
space:
mode:
authorbeck <>2000-04-15 06:18:51 +0000
committerbeck <>2000-04-15 06:18:51 +0000
commitb608c7f2b175e121f2c22d53341a317153afdc8e (patch)
treee94b160b3fcd8180df79e4251d68d24d665f0195 /src/lib/libcrypto/rand/rand_egd.c
parentc8d6701c396cebdcd0d45eac73b762e9498f6b01 (diff)
downloadopenbsd-b608c7f2b175e121f2c22d53341a317153afdc8e.tar.gz
openbsd-b608c7f2b175e121f2c22d53341a317153afdc8e.tar.bz2
openbsd-b608c7f2b175e121f2c22d53341a317153afdc8e.zip
OpenSSL 0.9.5a merge
Diffstat (limited to 'src/lib/libcrypto/rand/rand_egd.c')
-rw-r--r--src/lib/libcrypto/rand/rand_egd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libcrypto/rand/rand_egd.c b/src/lib/libcrypto/rand/rand_egd.c
index d834408bd4..380c7828c3 100644
--- a/src/lib/libcrypto/rand/rand_egd.c
+++ b/src/lib/libcrypto/rand/rand_egd.c
@@ -97,7 +97,7 @@ int RAND_egd(const char *path)
97 buf[1] = 255; 97 buf[1] = 255;
98 write(fd, buf, 2); 98 write(fd, buf, 2);
99 if (read(fd, buf, 1) != 1) goto err; 99 if (read(fd, buf, 1) != 1) goto err;
100 if (buf[0] == 0) goto err; 100 if (buf[0] == 0) goto err;
101 num = read(fd, buf, 255); 101 num = read(fd, buf, 255);
102 if (num < 1) goto err; 102 if (num < 1) goto err;
103 RAND_seed(buf, num); 103 RAND_seed(buf, num);