- Fix DROPBEAR_PRNGD_SOCKET since it doesn't need to call connect()

any more

--HG--
extra : convert_revision : 535f2029a34cba3d86eb8ce104d57c910c89c4a4
This commit is contained in:
Matt Johnston 2011-02-27 13:12:17 +00:00
parent abed230cdb
commit 9d9a8ff735

View File

@ -74,11 +74,6 @@ static void readrand(unsigned char* buf, unsigned int buflen) {
if (readfd < 0) {
dropbear_exit("Couldn't open random device");
}
/* todo - try various common locations */
if (connect(readfd, (struct sockaddr*)&egdsock,
sizeof(struct sockaddr_un)) < 0) {
dropbear_exit("Couldn't open random device");
}
if (buflen > 255)
dropbear_exit("Can't request more than 255 bytes from egd");