diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2022-03-05 19:39:53 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2022-03-07 17:23:12 +0100 |
| commit | d03440cab78605dcc21427127afdf78860d9916b (patch) | |
| tree | af7ac444e2b20e7fc7b692663994e038fb6fb69b /python/firstheader.py | |
| parent | 404e53da28b3cf26667653f8d8986e59bccf844a (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 'python/firstheader.py')
0 files changed, 0 insertions, 0 deletions
