diff options
author | George Kadianakis <desnacked@riseup.net> | 2020-03-30 23:24:33 +0300 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2020-03-30 23:37:26 +0300 |
commit | 8fda94f944f00f6f436604038ce135ab70f4feb4 (patch) | |
tree | 6b51d59c8d229c7fdf05951b048bfb5f3be41470 /src/feature/hs/hs_circuit.c | |
parent | 0667a5af8df8f372f6482254ca24c66268ed02f8 (diff) | |
download | tor-8fda94f944f00f6f436604038ce135ab70f4feb4.tar.gz tor-8fda94f944f00f6f436604038ce135ab70f4feb4.zip |
hs-v3: Move ob_subcreds to hs_service_state_t.
It's more natural there since it's runtime state.
Diffstat (limited to 'src/feature/hs/hs_circuit.c')
-rw-r--r-- | src/feature/hs/hs_circuit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/feature/hs/hs_circuit.c b/src/feature/hs/hs_circuit.c index fdd226ba79..dc13c7045e 100644 --- a/src/feature/hs/hs_circuit.c +++ b/src/feature/hs/hs_circuit.c @@ -984,13 +984,13 @@ get_subcredential_for_handling_intro2_cell(const hs_service_t *service, /* This should not happen since we should have made onionbalance * subcredentials when we created our descriptors. */ - if (BUG(!service->ob_subcreds)) { + if (BUG(!service->state.ob_subcreds)) { return -1; } /* We are an onionbalance instance: */ - data->n_subcredentials = service->n_ob_subcreds; - data->subcredentials = service->ob_subcreds; + data->n_subcredentials = service->state.n_ob_subcreds; + data->subcredentials = service->state.ob_subcreds; return 0; } |