summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rand/rand_egd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/rand/rand_egd.c')
-rw-r--r--src/lib/libcrypto/rand/rand_egd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libcrypto/rand/rand_egd.c b/src/lib/libcrypto/rand/rand_egd.c
index 6f742900a0..895967476e 100644
--- a/src/lib/libcrypto/rand/rand_egd.c
+++ b/src/lib/libcrypto/rand/rand_egd.c
@@ -56,7 +56,6 @@
56 56
57#include <openssl/e_os2.h> 57#include <openssl/e_os2.h>
58#include <openssl/rand.h> 58#include <openssl/rand.h>
59#include <openssl/buffer.h>
60 59
61/* 60/*
62 * Query the EGD <URL: http://www.lothar.com/tech/crypto/>. 61 * Query the EGD <URL: http://www.lothar.com/tech/crypto/>.
@@ -146,7 +145,7 @@ int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes)
146 addr.sun_family = AF_UNIX; 145 addr.sun_family = AF_UNIX;
147 if (strlen(path) >= sizeof(addr.sun_path)) 146 if (strlen(path) >= sizeof(addr.sun_path))
148 return (-1); 147 return (-1);
149 BUF_strlcpy(addr.sun_path,path,sizeof addr.sun_path); 148 strlcpy(addr.sun_path,path,sizeof addr.sun_path);
150 len = offsetof(struct sockaddr_un, sun_path) + strlen(path); 149 len = offsetof(struct sockaddr_un, sun_path) + strlen(path);
151 fd = socket(AF_UNIX, SOCK_STREAM, 0); 150 fd = socket(AF_UNIX, SOCK_STREAM, 0);
152 if (fd == -1) return (-1); 151 if (fd == -1) return (-1);