diff options
Diffstat (limited to 'src/inspsocket.cpp')
-rw-r--r-- | src/inspsocket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index 258dd4472..1ec32742e 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -98,7 +98,7 @@ bool BufferedSocket::DoBindMagic(const std::string ¤t_ip) return false; } - if (ServerInstance->SE->Bind(this->fd, &s.sa, sizeof(s)) < 0) + if (ServerInstance->SE->Bind(this->fd, &s.sa, sa_size(s)) < 0) { this->state = I_ERROR; this->OnError(I_ERR_BIND); |