summaryrefslogtreecommitdiff
path: root/src/userprocess.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-16 13:52:10 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-16 13:52:10 +0000
commitd7875763890e79ddcc1f4f105d7b896b0d5e5d83 (patch)
tree0c6cab5e7d7918731a0e43b983c486bd3ed16807 /src/userprocess.cpp
parent5d18f26b6bfb7a575b50dc2e3ad909131b9f75da (diff)
Fix socket leak properly this time
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4405 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/userprocess.cpp')
-rw-r--r--src/userprocess.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/userprocess.cpp b/src/userprocess.cpp
index b185bc4b5..a401efeb1 100644
--- a/src/userprocess.cpp
+++ b/src/userprocess.cpp
@@ -339,6 +339,7 @@ void DoBackgroundUserStuff(time_t TIME)
if (((unsigned)TIME > (unsigned)curr->timeout) && (curr->registered != 7))
{
log(DEBUG,"InspIRCd: registration timeout: %s",curr->nick);
+ ZapThisDns(curr->fd);
GlobalGoners.AddItem(curr,"Registration timeout");
continue;
}
@@ -350,6 +351,7 @@ void DoBackgroundUserStuff(time_t TIME)
if ((TIME > curr->signon) && (curr->registered == 3) && (AllModulesReportReady(curr)))
{
curr->dns_done = true;
+ ZapThisDns(curr->fd);
ServerInstance->stats->statsDnsBad++;
FullConnectUser(curr,&GlobalGoners);
continue;
@@ -359,6 +361,7 @@ void DoBackgroundUserStuff(time_t TIME)
{
log(DEBUG,"dns done, registered=3, and modules ready, OK");
FullConnectUser(curr,&GlobalGoners);
+ ZapThisDns(curr->fd);
continue;
}