summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-20 18:29:27 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-20 18:29:27 +0000
commit03a3ca90198b1e61c72c817c58b68d55b8115d22 (patch)
tree910a177dde17b4ac962644393b4ea3334693966f
parent959e902e57403148e556200568ff3e58408201de (diff)
Fix a bug i just introduced while playing with the code
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7777 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/inspsocket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp
index e43da50a5..eb92030c2 100644
--- a/src/inspsocket.cpp
+++ b/src/inspsocket.cpp
@@ -284,7 +284,7 @@ bool InspSocket::DoConnect()
if (inet_pton(AF_INET6, this->host, &addy) > 0)
{
((sockaddr_in6*)addr)->sin6_family = AF_INET6;
- memcpy(&((sockaddr_in6*)addr)->sin6_addr, &addy, sizeof(sockaddr_in6));
+ memcpy(&((sockaddr_in6*)addr)->sin6_addr, &addy, sizeof(addy));
((sockaddr_in6*)addr)->sin6_port = htons(this->port);
size = sizeof(sockaddr_in6);
}