]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/inspsocket.cpp
Allow voice or higher users to speak even when a matching muteban exists
[user/henk/code/inspircd.git] / src / inspsocket.cpp
index 258dd4472e375af573c7f2ced7e18ac0fcd6fbcb..1ec32742e8fa8bdab8e7017eac3a66df4059d042 100644 (file)
@@ -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);