diff options
-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 |