summaryrefslogtreecommitdiff
path: root/src/inspsocket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inspsocket.cpp')
-rw-r--r--src/inspsocket.cpp2
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 &current_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);