From 6c99a01008197c59832eb916dad8d6211f00a3e2 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 27 Mar 2008 16:17:57 +0000 Subject: Thanks danieldg git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9194 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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)); -- cgit v1.2.3