]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
hs-v3: Fix consensus param "hsdir-interval" name
authorDavid Goulet <dgoulet@torproject.org>
Mon, 13 Nov 2017 16:48:56 +0000 (11:48 -0500)
committerDavid Goulet <dgoulet@torproject.org>
Mon, 13 Nov 2017 16:48:56 +0000 (11:48 -0500)
The dir-spec.txt specifies it to be "hsdir_interval" (underscore).

Fixes #24262

Signed-off-by: David Goulet <dgoulet@torproject.org>
changes/bug24262 [new file with mode: 0644]
src/or/hs_common.c

diff --git a/changes/bug24262 b/changes/bug24262
new file mode 100644 (file)
index 0000000..eee6951
--- /dev/null
@@ -0,0 +1,3 @@
+  o Minor bugfixes (hidden service):
+    - Fix the consensus parameter "hsdir-interval" to "hsdir_interval" so it
+      matches the dir-spec.txt. Fixes bug 24262; bugfix on 0.3.1.1-alpha.
index 42508126f80a6ae2360fc07fe0d0b6e2bce13dba..7cef5a8e2c06f14c57587315af2460102ddaab0e 100644 (file)
@@ -56,7 +56,7 @@ hs_check_service_private_dir(const char *username, const char *path,
 STATIC uint64_t
 get_time_period_length(void)
 {
-  int32_t time_period_length = networkstatus_get_param(NULL, "hsdir-interval",
+  int32_t time_period_length = networkstatus_get_param(NULL, "hsdir_interval",
                                              HS_TIME_PERIOD_LENGTH_DEFAULT,
                                              HS_TIME_PERIOD_LENGTH_MIN,
                                              HS_TIME_PERIOD_LENGTH_MAX);