diff random.c @ 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 a98a2138364a
children 2b1bb792cd4d 167fdc091c05
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");