summaryrefslogtreecommitdiff
path: root/node/Utils.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-03-26 17:59:45 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-03-26 17:59:45 -0700
commit2ac56fd120c3c9dd924fccc169beed2d51658ba9 (patch)
treebb17861516a42791f2f3545abc3871d59e53d3da /node/Utils.cpp
parente6b23059aca4947c8c4638c5d5e0abdba3b2b7b7 (diff)
downloadinfinitytier-2ac56fd120c3c9dd924fccc169beed2d51658ba9.tar.gz
infinitytier-2ac56fd120c3c9dd924fccc169beed2d51658ba9.zip
Fix TCP connection accumulation problem, still having issues with TCP tunneling.
Diffstat (limited to 'node/Utils.cpp')
-rw-r--r--node/Utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/node/Utils.cpp b/node/Utils.cpp
index fe153af2..95b66337 100644
--- a/node/Utils.cpp
+++ b/node/Utils.cpp
@@ -207,11 +207,11 @@ void Utils::getSecureRandom(void *buf,unsigned int bytes)
{
int fd = ::open("/dev/urandom",O_RDONLY);
if (fd < 0) {
- fprintf(stderr,"FATAL ERROR: unable to open /dev/urandom%s",ZT_EOL_S);
+ fprintf(stderr,"FATAL ERROR: unable to open /dev/urandom (%d)"ZT_EOL_S,errno);
exit(-1);
}
if ((int)::read(fd,randbuf,sizeof(randbuf)) != (int)sizeof(randbuf)) {
- fprintf(stderr,"FATAL ERROR: unable to read from /dev/urandom%s",ZT_EOL_S);
+ fprintf(stderr,"FATAL ERROR: unable to read from /dev/urandom"ZT_EOL_S);
exit(-1);
}
::close(fd);