summaryrefslogtreecommitdiff
path: root/src/or/hs_service.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-08-03 15:52:01 +0300
committerNick Mathewson <nickm@torproject.org>2017-08-08 20:29:34 -0400
commit706392e6b5967c8a7766a6b68b2428a17c1bbe8f (patch)
tree15b2ecd52f22fecfe79453dc093a53957a7e26db /src/or/hs_service.c
parent3ce69a58ce908ea88443c1321a7e4378f059a897 (diff)
downloadtor-706392e6b5967c8a7766a6b68b2428a17c1bbe8f.tar.gz
tor-706392e6b5967c8a7766a6b68b2428a17c1bbe8f.zip
Make HidServRevCounter be a LINELIST as it should.
Diffstat (limited to 'src/or/hs_service.c')
-rw-r--r--src/or/hs_service.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/hs_service.c b/src/or/hs_service.c
index 2a3217a5b6..86e7d40cb7 100644
--- a/src/or/hs_service.c
+++ b/src/or/hs_service.c
@@ -2015,8 +2015,8 @@ update_revision_counters_in_state(void)
} FOR_EACH_SERVICE_END;
/* Remove the old rev counters, and replace them with the new ones */
- config_free_lines(state->HidServRevCounters);
- state->HidServRevCounters = lines;
+ config_free_lines(state->HidServRevCounter);
+ state->HidServRevCounter = lines;
/* Set the state as dirty since we just edited it */
if (!get_options()->AvoidDiskWrites) {
@@ -2101,13 +2101,13 @@ get_rev_counter_for_service(ed25519_public_key_t *blinded_pubkey)
/* Set default value for rev counters (if not found) to 0 */
uint64_t final_rev_counter = 0;
- for (line = state->HidServRevCounters ; line ; line = line->next) {
+ for (line = state->HidServRevCounter ; line ; line = line->next) {
int service_found = 0;
uint64_t rev_counter = 0;
tor_assert(!strcmp(line->key, "HidServRevCounter"));
- /* Scan all the HidServRevCounters lines till we find the line for this
+ /* Scan all the HidServRevCounter lines till we find the line for this
service: */
rev_counter = check_state_line_for_service_rev_counter(line->value,
blinded_pubkey,