From: brain Date: Sun, 13 Aug 2006 11:17:54 +0000 (+0000) Subject: Clear fd_ref_table and socket_ref arrays in the constructor X-Git-Tag: v2.0.23~7389 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=3b7ce097e2ed90b653f115ea7c2249030cc36aac;p=user%2Fhenk%2Fcode%2Finspircd.git 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 --- 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();