summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-18 17:59:22 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-18 17:59:22 +0000
commit0738c47225c7c6291f8d449c3238e9bf5abd8e1a (patch)
tree59a95592f7b41cf11c9b93d5ade09ed792ecff02 /src
parentfdd3804828fbd492a1860808b3256ca7153d3c8f (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_ident.cpp3
1 files changed, 3 insertions, 0 deletions
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];