summaryrefslogtreecommitdiff
path: root/src/socket.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-31 00:36:56 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-31 00:36:56 +0000
commit660248d9eb56f380fbbd906827fdef0535b98894 (patch)
tree9239140f088df75d28be424e8124bc36097fce95 /src/socket.cpp
parent21b5d0d5bd1e7d7de5bf34e9a1fc950fe9e1d6ec (diff)
Why the fuck do no systems have INADDR6_ANY?!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6468 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socket.cpp')
-rw-r--r--src/socket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket.cpp b/src/socket.cpp
index 861cd9b12..ce8fbaf6d 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -304,7 +304,7 @@ bool InspIRCd::BindSocket(int sockfd, insp_sockaddr client, insp_sockaddr server
if (!*addr)
{
#ifdef IPV6
- memcpy(&server.sin6_addr, INADDR6_ANY, sizeof(INADDR6_ANY));
+ memset(&server.sin6_addr, 0, sizeof(in6_addr));
#else
server.sin_addr.s_addr = htonl(INADDR_ANY);
#endif