diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_ident.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index 9272c5054..f522f6719 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -278,7 +278,11 @@ class ModuleIdent : public Module { int *fd; if (user->GetExt("ident_socket_fd", fd) && (ServerInstance->SE->GetRef(*fd) == isock)) + { + user->Shrink("ident_socket_fd"); + delete fd; isock->Close(); + } } } } @@ -290,7 +294,11 @@ class ModuleIdent : public Module { int *fd; if (user->GetExt("ident_socket_fd", fd) && (ServerInstance->SE->GetRef(*fd) == isock)) + { + user->Shrink("ident_socket_fd"); + delete fd; isock->Close(); + } } } }; |