diff options
Diffstat (limited to 'src/socket.cpp')
-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 3b0c63931..d8e710d56 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -61,7 +61,7 @@ bool InspIRCd::BindSocket(int sockfd, int port, const char* addr, bool dolisten) #endif } } - ret = SE->Bind(sockfd, &servaddr.sa, sizeof(servaddr)); + ret = SE->Bind(sockfd, &servaddr.sa, sa_size(servaddr)); if (ret < 0) { |