summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-06-16 04:02:21 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-06-16 04:02:21 +0000
commit14db93e7cfd4f434731305ef6e8832880f642fc5 (patch)
treef2f1fc306efb2ce7ce62c5ac27a1cbef2f72fd93 /src
parent2f12c298e8d932f0f7eba320db71f15ece9b4ae9 (diff)
Fix sockaddr length argument, BSD will complain if it doesn't exactly match the expected size
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11414 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/inspsocket.cpp2
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)
{