aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2023-10-05 23:28:05 -0400
committerNick Mathewson <nickm@torproject.org>2023-10-05 23:28:05 -0400
commitb9b0abd6c26d9b361923925dbd04eb50a6a69426 (patch)
tree1eff3292ce99b84d9bf67698edf4cf75e5ff6ea8 /src
parent5e95ad55dc1ec42d4e0a2d9a22863f13c67b5f5a (diff)
downloadtor-b9b0abd6c26d9b361923925dbd04eb50a6a69426.tar.gz
tor-b9b0abd6c26d9b361923925dbd04eb50a6a69426.zip
Fix the spelling of maxunmeasur(e)dbw.
This has been misspelled when using consensus method 31 or later since 0.4.6.1-alpha. Fixes bug 40869.
Diffstat (limited to 'src')
-rw-r--r--src/feature/dirauth/dirvote.c2
-rw-r--r--src/test/test_dir.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/dirauth/dirvote.c b/src/feature/dirauth/dirvote.c
index 2839c6db15..f8290cde6d 100644
--- a/src/feature/dirauth/dirvote.c
+++ b/src/feature/dirauth/dirvote.c
@@ -1781,7 +1781,7 @@ networkstatus_compute_consensus(smartlist_t *votes,
{
max_unmeasured_bw_kb = dirvote_get_intermediate_param_value(
- param_list, "maxunmeasurdbw", DEFAULT_MAX_UNMEASURED_BW_KB);
+ param_list, "maxunmeasuredbw", DEFAULT_MAX_UNMEASURED_BW_KB);
if (max_unmeasured_bw_kb < 1)
max_unmeasured_bw_kb = 1;
}
diff --git a/src/test/test_dir.c b/src/test/test_dir.c
index baf67be4f8..87aaef7fe6 100644
--- a/src/test/test_dir.c
+++ b/src/test/test_dir.c
@@ -4107,7 +4107,7 @@ vote_tweaks_for_umbw(networkstatus_t *v, int voter, time_t now)
NULL, 0, -1);
/* If we're using a non-default clip bandwidth, add it to net_params */
if (alternate_clip_bw > 0) {
- tor_asprintf(&maxbw_param, "maxunmeasurdbw=%u", alternate_clip_bw);
+ tor_asprintf(&maxbw_param, "maxunmeasuredbw=%u", alternate_clip_bw);
tt_assert(maxbw_param);
if (maxbw_param) {
smartlist_add(v->net_params, maxbw_param);