summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2011-02-07 23:21:33 -0500
committerRoger Dingledine <arma@torproject.org>2011-02-07 23:21:33 -0500
commit20b75989acb457e5a2f931f8ad74517f885940ed (patch)
tree09ff682a8489dec33202eaedc08eba79c633ae4b /src/or
parent9c2cb6fc8929cb02d500e8d276445205937ab01b (diff)
downloadtor-20b75989acb457e5a2f931f8ad74517f885940ed.tar.gz
tor-20b75989acb457e5a2f931f8ad74517f885940ed.zip
dtrt when only relaybandwidthburst is set
fixes bug 2470
Diffstat (limited to 'src/or')
-rw-r--r--src/or/config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c
index f8cfd29f84..8066a23a4a 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -3401,6 +3401,8 @@ options_validate(or_options_t *old_options, or_options_t *options,
if (options->RelayBandwidthRate && !options->RelayBandwidthBurst)
options->RelayBandwidthBurst = options->RelayBandwidthRate;
+ if (options->RelayBandwidthBurst && !options->RelayBandwidthRate)
+ options->RelayBandwidthRate = options->RelayBandwidthBurst;
if (options->RelayBandwidthRate > options->RelayBandwidthBurst)
REJECT("RelayBandwidthBurst must be at least equal "