aboutsummaryrefslogtreecommitdiff
path: root/src/usermanager.cpp
diff options
context:
space:
mode:
authorGravatar Attila Molnar2016-06-13 13:05:18 +0200
committerGravatar Attila Molnar2016-06-13 13:05:18 +0200
commitcb43342a295c6ab01d3895dd4bf21af60b76adaa (patch)
tree015d81567b42d0d45d8f7e9c544dcf74cbf8b130 /src/usermanager.cpp
parentFix for GCC 6 rightfully optimizing out the NULL check of 'this' in ConfigTag... (diff)
Stop processing the new connection in UserManager::AddUser() when an internal SocketEngine error happens and the user is quitted
Diffstat (limited to 'src/usermanager.cpp')
-rw-r--r--src/usermanager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/usermanager.cpp b/src/usermanager.cpp
index 76446c5b5..2cb7ad511 100644
--- a/src/usermanager.cpp
+++ b/src/usermanager.cpp
@@ -143,6 +143,7 @@ void UserManager::AddUser(int socket, ListenSocket* via, irc::sockets::sockaddrs
{
ServerInstance->Logs->Log("USERS", DEBUG,"Internal error on new connection");
this->QuitUser(New, "Internal error handling connection");
+ return;
}
/* NOTE: even if dns lookups are *off*, we still need to display this.