mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 09:21:18 +02:00
rcinput:killTimer check if iterator is not corrupted, possible segfault
This commit is contained in:
@@ -520,12 +520,13 @@ int CRCInput::checkTimers()
|
||||
else
|
||||
_newtimer.times_out = e->times_out + e->interval;
|
||||
|
||||
timers.erase(e);
|
||||
timers.erase(e);
|
||||
for ( e= timers.begin(); e!= timers.end(); ++e )
|
||||
if ( e->times_out> _newtimer.times_out )
|
||||
break;
|
||||
|
||||
timers.insert(e, _newtimer);
|
||||
if(e != timers.end())
|
||||
timers.insert(e, _newtimer);
|
||||
}
|
||||
else
|
||||
timers.erase(e);
|
||||
|
Reference in New Issue
Block a user