Protect rate limiter state updates with a mutex to prevent data races

This commit is contained in:
Andrea Mazzoleni 2026-08-12 00:22:27 +02:00
parent b4a694bb10
commit eebb3943e5
4 changed files with 34 additions and 1 deletions

View file

@ -2147,6 +2147,8 @@ bail:
free(buffer_alloc);
free(buffer);
bw_done(&bw);
/* fail if some error are present after the run */
if (fix) {
if (state->opt.expect_unrecoverable) {