summaryrefslogtreecommitdiff
path: root/lib/workqueue.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2022-03-05 19:39:53 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2022-03-07 17:23:12 +0100
commitd03440cab78605dcc21427127afdf78860d9916b (patch)
treeaf7ac444e2b20e7fc7b692663994e038fb6fb69b /lib/workqueue.c
parent404e53da28b3cf26667653f8d8986e59bccf844a (diff)
lib: fix log target removal when singlethreaded
While running singlethreaded, the RCU code is "dormant" and rcu_free is an immediate operation. This results in the log target loop accessing free'd memory if a log target removes itself while a message is printed (which is likely to happen on e.g. error conditions.) Just use frr_each_safe to avoid this issue. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/workqueue.c')
0 files changed, 0 insertions, 0 deletions