mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
fix another integer underflow caused by buckets going negative
svn:r3346
This commit is contained in:
parent
24a97d2c55
commit
bafb3e4a5b
@ -729,6 +729,8 @@ static int connection_bucket_read_limit(connection_t *conn) {
|
|||||||
if (at_most > conn->receiver_bucket)
|
if (at_most > conn->receiver_bucket)
|
||||||
at_most = conn->receiver_bucket;
|
at_most = conn->receiver_bucket;
|
||||||
|
|
||||||
|
if (at_most < 0)
|
||||||
|
return 0;
|
||||||
return at_most;
|
return at_most;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user