]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/listensocket.cpp
Fix sqllog compile error
[user/henk/code/inspircd.git] / src / listensocket.cpp
index 676898647847ff91cf5bcd9b06c1798d5d2b436a..f0daf8ef0cc549ba339dd97eb815a041810b5f6a 100644 (file)
@@ -36,7 +36,7 @@ ListenSocket::ListenSocket(ConfigTag* tag, const std::string& addr, int port)
        if (this->fd > -1)
        {
                ServerInstance->SE->SetReuse(fd);
-               int rv = ServerInstance->SE->Bind(this->fd, &bind_to.sa, sizeof(bind_to));
+               int rv = ServerInstance->SE->Bind(this->fd, bind_to);
                if (rv >= 0)
                        rv = ServerInstance->SE->Listen(this->fd, ServerInstance->Config->MaxConn);