From 660248d9eb56f380fbbd906827fdef0535b98894 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 31 Jan 2007 00:36:56 +0000 Subject: 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 --- 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 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 -- cgit v1.2.3