diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-05-31 18:48:31 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-05-31 18:48:31 +0000 |
commit | 5d4b426a334873d7b01433fdf4394a0ed6bb8807 (patch) | |
tree | be5985ba156b6fbf25f0931bc0dd68977b321791 /src/or/config.c | |
parent | 77502ac82dd4a2e6adfd954db5ee00042ea7dc0c (diff) | |
download | tor-5d4b426a334873d7b01433fdf4394a0ed6bb8807.tar.gz tor-5d4b426a334873d7b01433fdf4394a0ed6bb8807.zip |
r13103@catbus: nickm | 2007-05-31 14:40:18 -0400
Fix patch r10411; fix from robert hogan.
svn:r10422
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c index 165b2e5340..37dcc39312 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -2326,7 +2326,7 @@ ensure_bandwidth_cap(uint64_t *value, const char *desc, char **msg) { int r; 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" * whereas our actual maximum is 2gb-1 (INT_MAX) */ --*value; |