mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-09-21 21:44:58 +02:00
r13103@catbus: nickm | 2007-05-31 14:40:18 -0400
Fix patch r10411; fix from robert hogan. svn:r10422
This commit is contained in:
parent
77502ac82d
commit
5d4b426a33
@ -2326,7 +2326,7 @@ ensure_bandwidth_cap(uint64_t *value, const char *desc, char **msg)
|
|||||||
{
|
{
|
||||||
int r;
|
int r;
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
if (*value == ROUTER_MAX_DECLARED_BANDWIDTH) {
|
if (*value > ROUTER_MAX_DECLARED_BANDWIDTH) {
|
||||||
/* This handles an understandable special case where somebody says "2gb"
|
/* This handles an understandable special case where somebody says "2gb"
|
||||||
* whereas our actual maximum is 2gb-1 (INT_MAX) */
|
* whereas our actual maximum is 2gb-1 (INT_MAX) */
|
||||||
--*value;
|
--*value;
|
||||||
|
Loading…
Reference in New Issue
Block a user