diff options
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp index c02dbd4ab..34c347cb9 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -908,10 +908,13 @@ void AddClient(int socket, int port, bool iscached, insp_inaddr ip) if (socket > -1) { - ServerInstance->SE->AddFd(socket,true,X_ESTAB_CLIENT); + if (!ServerInstance->SE->AddFd(socket,true,X_ESTAB_CLIENT)) + { + kill_link(_new, "Internal error handling connection"); + return; + } } - log(DEBUG,"Writing to client %d",_new->fd); WriteServ(_new->fd,"NOTICE Auth :*** Looking up your hostname..."); } |