EGD bugfix.

Submitted by: Lutz Jaenicke <Lutz.Jaenicke@aet.TU-Cottbus.DE>
This commit is contained in:
Ulf Möller
2000-02-25 14:16:43 +00:00
parent cacbb51ee1
commit fea217f96f
2 changed files with 5 additions and 2 deletions

View File

@@ -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);