Crash fix.

This commit is contained in:
Jan Vidar Krey 2010-01-18 19:38:07 +01:00
parent 7dfa3162cb
commit 001fa6739a
1 changed files with 3 additions and 0 deletions

View File

@ -98,6 +98,9 @@ void timeout_queue_remove(struct timeout_queue* t, struct timeout_evt* evt)
size_t pos = (evt->timestamp % t->max);
struct timeout_evt* first = t->events[pos];
if (!first)
return;
if (first == evt)
{
if (first->next)