mirror of
https://github.com/clearml/dropbear
synced 2025-03-04 02:57:46 +00:00
- Fix DROPBEAR_PRNGD_SOCKET since it doesn't need to call connect()
any more --HG-- extra : convert_revision : 535f2029a34cba3d86eb8ce104d57c910c89c4a4
This commit is contained in:
parent
abed230cdb
commit
9d9a8ff735
5
random.c
5
random.c
@ -74,11 +74,6 @@ static void readrand(unsigned char* buf, unsigned int buflen) {
|
|||||||
if (readfd < 0) {
|
if (readfd < 0) {
|
||||||
dropbear_exit("Couldn't open random device");
|
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)
|
if (buflen > 255)
|
||||||
dropbear_exit("Can't request more than 255 bytes from egd");
|
dropbear_exit("Can't request more than 255 bytes from egd");
|
||||||
|
Loading…
Reference in New Issue
Block a user