From 156c232d1d22568d20ec498c4bd344bf03052e4a Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 27 Jul 2007 17:20:41 +0000 Subject: Found the bug, turns out i just introduced it with the last commit :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7591 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/userprocess.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/userprocess.cpp') diff --git a/src/userprocess.cpp b/src/userprocess.cpp index 818713f89..78a0bc31f 100644 --- a/src/userprocess.cpp +++ b/src/userprocess.cpp @@ -195,8 +195,7 @@ void InspIRCd::DoBackgroundUserStuff(time_t TIME) const time_t DUMMY_VALUE = 32768; next_call = TIME + DUMMY_VALUE; - /* XXX: IT IS NOT SAFE TO USE AN ITERATOR HERE. DON'T EVEN THINK ABOUT IT. */ - for (std::vector::iterator count2 = local_users.begin(); count2 != local_users.end(); ++count2) + for (std::vector::iterator count2 = local_users.begin(); count2 != local_users.end(); count2++) { userrec* curr = *count2; @@ -284,3 +283,4 @@ void InspIRCd::DoBackgroundUserStuff(time_t TIME) } } } + -- cgit v1.2.3