diff options
| author | 2010-03-02 06:11:35 +0000 | |
|---|---|---|
| committer | 2010-03-02 06:11:35 +0000 | |
| commit | af85aa22e6598197b9faa855b01362a13a370b8f (patch) | |
| tree | 2a74caa2722f112bd6319e7e2f652f4fa35fe619 /src/modules | |
| parent | Cap masks and bans at 250 characters to fix bug #946 (diff) | |
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
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/m_ident.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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); |
