mirror of https://github.com/OISF/suricata
Add removal safe TAILQ iterator.
TAILQ_FOREACH macro was not safe for element removal as it was accessing the next element in case of a free. This patch is inspired by Linux list handling and provide a new macro TAILQ_FOREACH_SAFE. This macro is removal safe and only differs by a last argument being a temporaty pointer to an element.pull/231/head
parent
06751ecd75
commit
9c47ada771
Loading…
Reference in New Issue