diff options
Diffstat (limited to 'src/or/rendcommon.c')
-rw-r--r-- | src/or/rendcommon.c | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c index ab38e9f3a6..4c60bac803 100644 --- a/src/or/rendcommon.c +++ b/src/or/rendcommon.c @@ -234,7 +234,7 @@ rend_get_service_id(crypto_pk_env_t *pk, char *out) /** How old do we let hidden service descriptors get discarding them as too * old? */ #define REND_CACHE_MAX_AGE (2*24*60*60) -/** How wrong do we assume our clock may be when checking whether hidden +/** How wrong to we assume our clock may be when checking whether hidden * services are too old or too new? */ #define REND_CACHE_MAX_SKEW (24*60*60) @@ -432,41 +432,34 @@ void rend_process_relay_cell(circuit_t *circ, int command, size_t length, const char *payload) { - or_circuit_t *or_circ = NULL; - origin_circuit_t *origin_circ = NULL; int r; - if (CIRCUIT_IS_ORIGIN(circ)) - origin_circ = TO_ORIGIN_CIRCUIT(circ); - else - or_circ = TO_OR_CIRCUIT(circ); - switch (command) { case RELAY_COMMAND_ESTABLISH_INTRO: - r = rend_mid_establish_intro(or_circ,payload,length); + r = rend_mid_establish_intro(circ,payload,length); break; case RELAY_COMMAND_ESTABLISH_RENDEZVOUS: - r = rend_mid_establish_rendezvous(or_circ,payload,length); + r = rend_mid_establish_rendezvous(circ,payload,length); break; case RELAY_COMMAND_INTRODUCE1: - r = rend_mid_introduce(or_circ,payload,length); + r = rend_mid_introduce(circ,payload,length); break; case RELAY_COMMAND_INTRODUCE2: - r = rend_service_introduce(origin_circ,payload,length); + r = rend_service_introduce(circ,payload,length); break; case RELAY_COMMAND_INTRODUCE_ACK: - r = rend_client_introduction_acked(origin_circ,payload,length); + r = rend_client_introduction_acked(circ,payload,length); break; case RELAY_COMMAND_RENDEZVOUS1: - r = rend_mid_rendezvous(or_circ,payload,length); + r = rend_mid_rendezvous(circ,payload,length); break; case RELAY_COMMAND_RENDEZVOUS2: - r = rend_client_receive_rendezvous(origin_circ,payload,length); + r = rend_client_receive_rendezvous(circ,payload,length); break; case RELAY_COMMAND_INTRO_ESTABLISHED: - r = rend_service_intro_established(origin_circ,payload,length); + r = rend_service_intro_established(circ,payload,length); break; case RELAY_COMMAND_RENDEZVOUS_ESTABLISHED: - r = rend_client_rendezvous_acked(origin_circ,payload,length); + r = rend_client_rendezvous_acked(circ,payload,length); break; default: tor_assert(0); |