summaryrefslogtreecommitdiff
path: root/src/socket.cpp
diff options
context:
space:
mode:
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