mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
fix another integer underflow caused by buckets going negative
svn:r3346
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user