diff options
author | David Goulet <dgoulet@torproject.org> | 2021-10-19 09:48:13 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2021-10-19 09:48:13 -0400 |
commit | f748a497c7735cd7adb7982aca4fec8775196e23 (patch) | |
tree | b71171567d2eb7d43261ab93a38695c2b32cb3c9 /src/feature/hs | |
parent | ce5b240c19fed8109578fb9143f023af1daca0a5 (diff) | |
parent | db297a177edc8aba9334d6b3b525604d9b0f87a2 (diff) | |
download | tor-f748a497c7735cd7adb7982aca4fec8775196e23.tar.gz tor-f748a497c7735cd7adb7982aca4fec8775196e23.zip |
Merge branch 'ticket40476_045_01' into ticket40476_046_01
Diffstat (limited to 'src/feature/hs')
-rw-r--r-- | src/feature/hs/hs_config.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/feature/hs/hs_config.c b/src/feature/hs/hs_config.c index 68ed932701..73f9176186 100644 --- a/src/feature/hs/hs_config.c +++ b/src/feature/hs/hs_config.c @@ -159,8 +159,12 @@ static bool check_value_oob(int i, const char *name, int low, int high) { if (i < low || i > high) { - log_warn(LD_CONFIG, "%s must be between %d and %d, not %d.", - name, low, high, i); + if (low == high) { + log_warn(LD_CONFIG, "%s must be %d, not %d.", name, low, i); + } else { + log_warn(LD_CONFIG, "%s must be between %d and %d, not %d.", + name, low, high, i); + } return true; } return false; |