comparison random.c @ 159:4bd4fc8023bd

random.c: fix missed instance of DROPBEAR_EGD_SOCKET
author Matt Johnston <matt@ucc.asn.au>
date Mon, 27 Dec 2004 16:38:44 +0000
parents ed9ca2a9705c
children 5ccad7634388 c9483550701b
comparison
equal deleted inserted replaced
158:364a75cfebab 159:4bd4fc8023bd
66 #endif 66 #endif
67 67
68 #ifdef DROPBEAR_PRNGD_SOCKET 68 #ifdef DROPBEAR_PRNGD_SOCKET
69 memset((void*)&egdsock, 0x0, sizeof(egdsock)); 69 memset((void*)&egdsock, 0x0, sizeof(egdsock));
70 egdsock.sun_family = AF_UNIX; 70 egdsock.sun_family = AF_UNIX;
71 strlcpy(egdsock.sun_path, DROPBEAR_EGD_SOCKET, 71 strlcpy(egdsock.sun_path, DROPBEAR_PRNGD_SOCKET,
72 sizeof(egdsock.sun_path)); 72 sizeof(egdsock.sun_path));
73 73
74 readfd = socket(PF_UNIX, SOCK_STREAM, 0); 74 readfd = socket(PF_UNIX, SOCK_STREAM, 0);
75 if (readfd < 0) { 75 if (readfd < 0) {
76 dropbear_exit("couldn't open random device"); 76 dropbear_exit("couldn't open random device");