summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-03-27 16:17:57 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-03-27 16:17:57 +0000
commit6c99a01008197c59832eb916dad8d6211f00a3e2 (patch)
tree15fe5f541243fdbefcbacc4989764688e0447aaa
parent6a64f0f3f07ebac876435b28bddf4b6b6c245ebf (diff)
Thanks danieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9194 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/socket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket.cpp b/src/socket.cpp
index 16cdebae6..e48184694 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -111,7 +111,7 @@ void ListenSocket::HandleEvent(EventType, int)
if (this->family == AF_INET6)
{
in_port = ntohs(((sockaddr_in6*)sock_us)->sin6_port);
- inet_ntop(AF_INET6, &((const sockaddr_in6*)ip)->sin6_addr, buf, sizeof(buf));
+ inet_ntop(AF_INET6, &((const sockaddr_in6*)client)->sin6_addr, buf, sizeof(buf));
socklen_t raddrsz = sizeof(sockaddr_in6);
if (getpeername(incomingSockfd, (sockaddr*) raddr, &raddrsz) == 0)
inet_ntop(AF_INET6, &((const sockaddr_in6*)raddr)->sin6_addr, target, sizeof(target));