mirror of
https://github.com/clearml/dropbear
synced 2025-02-12 07:25:30 +00:00
random.c: fix missed instance of DROPBEAR_EGD_SOCKET
--HG-- extra : convert_revision : 0be7aaee2230fa65f252b2e74deee7102558ceb6
This commit is contained in:
parent
9d43183704
commit
6d75298284
2
random.c
2
random.c
@ -68,7 +68,7 @@ static void readrand(unsigned char* buf, unsigned int buflen) {
|
|||||||
#ifdef DROPBEAR_PRNGD_SOCKET
|
#ifdef DROPBEAR_PRNGD_SOCKET
|
||||||
memset((void*)&egdsock, 0x0, sizeof(egdsock));
|
memset((void*)&egdsock, 0x0, sizeof(egdsock));
|
||||||
egdsock.sun_family = AF_UNIX;
|
egdsock.sun_family = AF_UNIX;
|
||||||
strlcpy(egdsock.sun_path, DROPBEAR_EGD_SOCKET,
|
strlcpy(egdsock.sun_path, DROPBEAR_PRNGD_SOCKET,
|
||||||
sizeof(egdsock.sun_path));
|
sizeof(egdsock.sun_path));
|
||||||
|
|
||||||
readfd = socket(PF_UNIX, SOCK_STREAM, 0);
|
readfd = socket(PF_UNIX, SOCK_STREAM, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user