From 0738c47225c7c6291f8d449c3238e9bf5abd8e1a Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 18 Oct 2007 17:59:22 +0000 Subject: Set IdentRequestSocket::done on failure to getsockname() in OnConnected git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8224 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_ident.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index d93b0e459..f08f8c868 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -133,7 +133,10 @@ class IdentRequestSocket : public EventHandler socklen_t raddrsz = sizeof(raddr); if ((getsockname(user->GetFd(), (sockaddr*) &laddr, &laddrsz) != 0) || (getpeername(user->GetFd(), (sockaddr*) &raddr, &raddrsz) != 0)) + { + done = true; return; + } char req[32]; -- cgit v1.2.3