summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-11-14 22:32:32 -0800
committerPixel <pixel@nobis-crew.org>2011-11-14 22:32:32 -0800
commit060c3334823e5eccf172a97749a0a6aecd6bb16a (patch)
treefa63d531aa24801f6ee8e0f3c5fd0ebd3c463e1f /src
parent7c4a5846e83e41af5f26a56c37282e77d245ff46 (diff)
Funny this worked so far; fixing accept().
Diffstat (limited to 'src')
-rw-r--r--src/Socket.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Socket.cc b/src/Socket.cc
index a0a5a90..f625c91 100644
--- a/src/Socket.cc
+++ b/src/Socket.cc
@@ -492,7 +492,7 @@ Balau::IO<Balau::Socket> Balau::Socket::accept() throw (GeneralException) {
while(true) {
sockaddr_in6 remoteAddr;
- socklen_t len;
+ socklen_t len = sizeof(sockaddr_in6);
Printer::elog(E_SOCKET, "Socket %i (%s) is going to accept()", m_fd, m_name.to_charp());
int s = ::accept(m_fd, (sockaddr *) &remoteAddr, &len);