diff options
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/config.c b/src/or/config.c index 70b4dc598d..5fa01d59e8 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -2635,15 +2635,15 @@ options_validate(or_options_t *old_options, or_options_t *options, if (options->KeepalivePeriod < 1) REJECT("KeepalivePeriod option must be positive."); - if (options->BandwidthRate > INT_MAX) { + if (options->BandwidthRate > ROUTER_MAX_DECLARED_BANDWIDTH) { r = tor_snprintf(buf, sizeof(buf), - "BandwidthRate must be less than %d",INT_MAX); + "BandwidthRate must be less than %d",INT32_MAX); *msg = tor_strdup(r >= 0 ? buf : "internal error"); return -1; } - if (options->BandwidthBurst > INT_MAX) { + if (options->BandwidthBurst > ROUTER_MAX_DECLARED_BANDWIDTH) { r = tor_snprintf(buf, sizeof(buf), - "BandwidthBurst must be less than %d",INT_MAX); + "BandwidthBurst must be less than %d",INT32_MAX); *msg = tor_strdup(r >= 0 ? buf : "internal error"); return -1; } |