From 60079fde5b9551c05de9447e4c62de2d20fe6599 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 13 Mar 2006 13:51:44 +0000 Subject: Obscure bug of the week: InspIRCd crashes when given more than 64 client ports to bind in the config file (yes, *REALLY*.) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3701 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 2 +- src/inspircd_io.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 06a52ed08..1df6ee293 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -71,7 +71,7 @@ std::vector local_users; extern int MODCOUNT; extern char LOG_FILE[MAXBUF]; -int openSockfd[MAXSOCKS]; +int openSockfd[MAX_DESCRIPTORS]; int yield_depth; int iterations = 0; sockaddr_in client,server; diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp index 9fc1bd410..47f5b7965 100644 --- a/src/inspircd_io.cpp +++ b/src/inspircd_io.cpp @@ -35,7 +35,7 @@ using namespace std; extern ServerConfig *Config; extern InspIRCd* ServerInstance; -extern int openSockfd[MAXSOCKS]; +extern int openSockfd[MAX_DESCRIPTORS]; extern time_t TIME; extern int MODCOUNT; -- cgit v1.2.3