mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 22:47:12 +01:00
fix another integer underflow caused by buckets going negative
svn:r3346
This commit is contained in:
parent
24a97d2c55
commit
bafb3e4a5b
1 changed files with 2 additions and 0 deletions
|
@ -729,6 +729,8 @@ static int connection_bucket_read_limit(connection_t *conn) {
|
|||
if (at_most > conn->receiver_bucket)
|
||||
at_most = conn->receiver_bucket;
|
||||
|
||||
if (at_most < 0)
|
||||
return 0;
|
||||
return at_most;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue