Trigger & fix first fuzzing bug

This commit is contained in:
Alex Hultman
2021-09-25 06:26:58 +02:00
parent 4243874967
commit dd67cb01f2
2 changed files with 23 additions and 0 deletions
+14
View File
@@ -220,6 +220,20 @@ public:
}
}
/* We also need to unlink us */
if (s->needsDrainage()) {
if (s->prev) {
s->prev->next = s->next;
}
if (s->next) {
s->next->prev = s->prev;
}
/* If we are the head, then we also need to reset the head */
if (drainableSubscribers == s) {
drainableSubscribers = nullptr;
}
}
delete s;
}