diff options
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r-- | src/or/rendservice.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c index 2374aec00..0de3189a8 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -1170,7 +1170,7 @@ rend_service_introduce(origin_circuit_t *circuit, const uint8_t *request, escaped(serviceid), (unsigned)circuit->base_.n_circ_id); /* use intro key instead of service key. */ - intro_key = circuit->intro_key; + intro_key = service->private_key; tor_free(err_msg); stage_descr = NULL; @@ -2448,8 +2448,8 @@ rend_service_intro_has_opened(origin_circuit_t *circuit) "Established circuit %u as introduction point for service %s", (unsigned)circuit->base_.n_circ_id, serviceid); - /* Use the intro key instead of the service key in ESTABLISH_INTRO. */ - intro_key = circuit->intro_key; + /* Use the service key in ESTABLISH_INTRO. */ + intro_key = service->private_key; /* Build the payload for a RELAY_ESTABLISH_INTRO cell. */ r = crypto_pk_asn1_encode(intro_key, buf+2, RELAY_PAYLOAD_SIZE-2); |