diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-31 00:36:56 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-01-31 00:36:56 +0000 |
commit | 660248d9eb56f380fbbd906827fdef0535b98894 (patch) | |
tree | 9239140f088df75d28be424e8124bc36097fce95 | |
parent | 21b5d0d5bd1e7d7de5bf34e9a1fc950fe9e1d6ec (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
-rw-r--r-- | src/socket.cpp | 2 |
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 |