From: brain Date: Mon, 20 Aug 2007 18:29:27 +0000 (+0000) Subject: Fix a bug i just introduced while playing with the code X-Git-Tag: v2.0.23~4769 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=03a3ca90198b1e61c72c817c58b68d55b8115d22;p=user%2Fhenk%2Fcode%2Finspircd.git 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 --- 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); }