diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-01 15:08:16 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-01 15:08:16 +0000 |
commit | b04195317ae7c65f011025740e43079159734a33 (patch) | |
tree | 8cfcb507abdcae28974cd4b0d076c7cd32a4b1d9 /src/inspsocket.cpp | |
parent | 248a14477c435ef28b71df42080ec931b1003e3f (diff) |
Use sa_size() rather than sizeof() when passing input parameters to a syscall
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11583 e03df62e-2008-0410-955e-edbf42e46eb7
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); |