]> git.puffer.fish Git - matthieu/frr.git/commit
lib: fix delete during hash_iterate() in event_*
authorDavid Lamparter <equinox@opensourcerouting.org>
Thu, 7 Sep 2023 09:48:22 +0000 (11:48 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Thu, 7 Sep 2023 15:19:39 +0000 (17:19 +0200)
commit3d1a678e249782e7c3e68158b0e13177907ade84
tree797485a051512b6f4f8abe4d48f0df3362ea7b9f
parentf3434880b6768b1d1059a578d2c404490a56004f
lib: fix delete during hash_iterate() in event_*

... by converting the hash table to a typesafe hash.

Honestly I was just looking around for things to convert to the typesafe
hash table code, but then I noticed that cpu_record_clear() deletes
items from inside the hash_iterate() callback :(

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/event.c
lib/frrevent.h