diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-19 20:27:23 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-19 20:27:23 +0000 |
commit | 3705f90b1abb723d716926eedf8e1ff80afae789 (patch) | |
tree | 49ff7d190863d644e73a654fdfa86b87c8882eea /src | |
parent | 8ebb15caa96feb2eedb71b340ac0e603841ab0f4 (diff) |
When we handle a READ event on a user, return immediately.
This is because the read event may remove the user, in which case the !empty and quituser check below will address invalid data!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6049 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/users.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp index 4a77b450f..0266d0e44 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -2013,7 +2013,7 @@ void userrec::HandleEvent(EventType et, int errornum) { case EVENT_READ: ServerInstance->ProcessUser(this); - + return; break; case EVENT_WRITE: this->FlushWriteBuf(); |