mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Avoid perma-blocking the controller on bug in shrink_freelist
In all likelihood, this bug would make Tor assert, but if it doesn't, let's not have two bugs.
This commit is contained in:
parent
3a7614c670
commit
dbba84c917
@ -283,7 +283,7 @@ buf_shrink_freelists(int free_all)
|
||||
orig_n_to_skip, (int)freelists[i].alloc_size,
|
||||
orig_n_to_skip-n_to_skip, freelists[i].cur_length);
|
||||
assert_freelist_ok(&freelists[i]);
|
||||
return;
|
||||
goto done;
|
||||
}
|
||||
// tor_assert((*chp)->next);
|
||||
chp = &(*chp)->next;
|
||||
@ -318,6 +318,7 @@ buf_shrink_freelists(int free_all)
|
||||
freelists[i].lowest_length = freelists[i].cur_length;
|
||||
assert_freelist_ok(&freelists[i]);
|
||||
}
|
||||
done:
|
||||
enable_control_logging();
|
||||
#else
|
||||
(void) free_all;
|
||||
|
Loading…
Reference in New Issue
Block a user