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 41bce84a7..7718fe70a 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -238,7 +238,7 @@ bool BufferedSocket::DoConnect(unsigned long maxtime) ServerInstance->SE->NonBlocking(this->fd); - if (ServerInstance->SE->Connect(this, &addr.sa, sizeof(addr)) == -1) + if (ServerInstance->SE->Connect(this, &addr.sa, sa_size(addr)) == -1) { if (errno != EINPROGRESS) { |