From af85aa22e6598197b9faa855b01362a13a370b8f Mon Sep 17 00:00:00 2001 From: danieldg Date: Tue, 2 Mar 2010 06:11:35 +0000 Subject: Fix memory leak and possible crash in m_ident, found in 2.0 git-svn-id: http://svn.inspircd.org/repository/branches/1_2_stable@12587 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_ident.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/modules') diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index d5ca20836..8e0350389 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -350,6 +350,9 @@ class ModuleIdent : public Module virtual int OnUserRegister(User *user) { + if (user->GetExt("ident_socket")) + return 0; + for (int j = 0; j < Conf->Enumerate("connect"); j++) { std::string hostn = Conf->ReadValue("connect","allow",j); -- cgit v1.3.1-10-gc9f91