From 060c3334823e5eccf172a97749a0a6aecd6bb16a Mon Sep 17 00:00:00 2001 From: Pixel Date: Mon, 14 Nov 2011 22:32:32 -0800 Subject: Funny this worked so far; fixing accept(). --- src/Socket.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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::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); -- cgit v1.2.3