]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/socket.cpp
Fixed to dynamically allocate the fieldlist
[user/henk/code/inspircd.git] / src / socket.cpp
index 793e930ffb903665474b2800d490956227aa3f53..b9d5fee5f088cac73729674cf49affdb6da86f85 100644 (file)
@@ -119,7 +119,7 @@ int OpenTCPSocket()
 
 bool HasPort(int port, char* addr)
 {
-       for (int count = 0; count < ServerInstance->stats->BoundPortCount; count++)
+       for (unsigned long count = 0; count < ServerInstance->stats->BoundPortCount; count++)
        {
                if ((port == Config->ports[count]) && (!strcasecmp(Config->addrs[count],addr)))
                {