diff options
author | Roger Dingledine <arma@torproject.org> | 2007-02-28 20:24:09 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-02-28 20:24:09 +0000 |
commit | 08c75f4349067815f4d131ca2cd4b425ec8fc38c (patch) | |
tree | 74898b8bf552f11a1336c6e7643220f6cb095ca4 | |
parent | dfbced74999c85b4be88db96a5e4407218ac12a6 (diff) | |
download | tor-08c75f4349067815f4d131ca2cd4b425ec8fc38c.tar.gz tor-08c75f4349067815f4d131ca2cd4b425ec8fc38c.zip |
avoid a few headaches
svn:r9686
-rw-r--r-- | src/or/config.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/config.c b/src/or/config.c index 5fa01d59e8..56f4ed1206 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -2637,13 +2637,15 @@ options_validate(or_options_t *old_options, or_options_t *options, if (options->BandwidthRate > ROUTER_MAX_DECLARED_BANDWIDTH) { r = tor_snprintf(buf, sizeof(buf), - "BandwidthRate must be less than %d",INT32_MAX); + "BandwidthRate must be at most %d", + ROUTER_MAX_DECLARED_BANDWIDTH); *msg = tor_strdup(r >= 0 ? buf : "internal error"); return -1; } if (options->BandwidthBurst > ROUTER_MAX_DECLARED_BANDWIDTH) { r = tor_snprintf(buf, sizeof(buf), - "BandwidthBurst must be less than %d",INT32_MAX); + "BandwidthBurst must be at most %d", + ROUTER_MAX_DECLARED_BANDWIDTH); *msg = tor_strdup(r >= 0 ? buf : "internal error"); return -1; } |