summaryrefslogtreecommitdiff
path: root/src/feature
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2021-10-14 19:19:32 +0000
committerAlexander Færøy <ahf@torproject.org>2021-10-14 19:19:32 +0000
commit8c18e9a949a76f53b7892739205bf29a8c020224 (patch)
tree20b85e7cf78dce19965d4b8e1e7c2bebdb6fd730 /src/feature
parentb93af906c444a71b52105c49239069adf680efad (diff)
parent15ede0435f5d161e34c11770b6a96f0f31b6cf2f (diff)
downloadtor-8c18e9a949a76f53b7892739205bf29a8c020224.tar.gz
tor-8c18e9a949a76f53b7892739205bf29a8c020224.zip
Merge remote-tracking branch 'tor-gitlab/mr/459' into main
Diffstat (limited to 'src/feature')
-rw-r--r--src/feature/client/entrynodes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/feature/client/entrynodes.c b/src/feature/client/entrynodes.c
index 9583a4db71..315bd54674 100644
--- a/src/feature/client/entrynodes.c
+++ b/src/feature/client/entrynodes.c
@@ -559,7 +559,7 @@ get_extreme_restriction_threshold(void)
int32_t pct = networkstatus_get_param(NULL,
"guard-extreme-restriction-percent",
DFLT_EXTREME_RESTRICTION_PERCENT,
- 1, INT32_MAX);
+ 1, 100);
return pct / 100.0;
}