changeset 602:2d896267f16d

- Fix DROPBEAR_PRNGD_SOCKET since it doesn't need to call connect() any more
author Matt Johnston <matt@ucc.asn.au>
date Sun, 27 Feb 2011 13:12:17 +0000
parents 2cd89d627adb
children 3aa74a4d83ae
files random.c
diffstat 1 files changed, 0 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/random.c	Fri Feb 25 12:16:14 2011 +0000
+++ b/random.c	Sun Feb 27 13:12:17 2011 +0000
@@ -74,11 +74,6 @@
 	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");