summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/helper.c b/helper.c
index efb7a463..28fe0421 100644
--- a/helper.c
+++ b/helper.c
@@ -111,7 +111,7 @@ void get_random_bytes(unsigned char *buf, int len)
fatal("Couldn't create AF_UNIX socket: %s", strerror(errno));
if (connect(random_pool, (struct sockaddr*)&addr, addr_len) == -1)
- fatal("Couldn't connect to EGD socket \"%s\": %s", RANDOM_POOL, strerror(errno));
+ fatal("Couldn't connect to EGD socket \"%s\": %s", addr.sun_path, strerror(errno));
if (len > 255)
fatal("Too many bytes to read from EGD");