summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-13 11:17:54 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-13 11:17:54 +0000
commit3b7ce097e2ed90b653f115ea7c2249030cc36aac (patch)
treefa5153239bc7d0f7e21bc78dcf8bed9fd859e699
parent497e200257d41c6505a5ef01884dd8c04a00d586 (diff)
Clear fd_ref_table and socket_ref arrays in the constructor
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4915 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/inspircd.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 21cec8302..c5f1a962f 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -175,6 +175,9 @@ InspIRCd::InspIRCd(int argc, char** argv)
modules.resize(255);
factory.resize(255);
+
+ memset(fd_ref_table, 0, sizeof(fd_ref_table));
+ memset(socket_ref, 0, sizeof(socket_ref));
this->Config = new ServerConfig(this);
this->Start();