aboutsummaryrefslogtreecommitdiff
path: root/src/or/rendclient.c
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@fscked.org>2012-12-07 15:50:31 -0800
committerMike Perry <mikeperry-git@fscked.org>2012-12-07 15:50:31 -0800
commitc3b71a3fc96c6f3eaaebd96ef8c15d4298d9639e (patch)
treef9d2c7077d4aa77311d5c0d2345f6359b4ae4c1c /src/or/rendclient.c
parentdc86d7c35bd48d12d84feb6f63014904eabe0902 (diff)
downloadtor-c3b71a3fc96c6f3eaaebd96ef8c15d4298d9639e.tar
tor-c3b71a3fc96c6f3eaaebd96ef8c15d4298d9639e.tar.gz
Actually, both nacks and acks indicate a valid path
Diffstat (limited to 'src/or/rendclient.c')
-rw-r--r--src/or/rendclient.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/or/rendclient.c b/src/or/rendclient.c
index ec43041b1..1d473dec0 100644
--- a/src/or/rendclient.c
+++ b/src/or/rendclient.c
@@ -361,6 +361,10 @@ rend_client_introduction_acked(origin_circuit_t *circ,
#endif
tor_assert(circ->rend_data);
+ /* For path bias: This circuit was used successfully. Valid
+ * nacks and acks count. */
+ circ->any_streams_succeeded = 1;
+
if (request_len == 0) {
/* It's an ACK; the introduction point relayed our introduction request. */
/* Locate the rend circ which is waiting to hear about this ack,
@@ -378,9 +382,6 @@ rend_client_introduction_acked(origin_circuit_t *circ,
* it to specify when a circuit entered the
* _C_REND_READY_INTRO_ACKED state. */
rendcirc->base_.timestamp_dirty = time(NULL);
-
- /* For path bias: This circuit was used successfully */
- circ->any_streams_succeeded = 1;
} else {
log_info(LD_REND,"...Found no rend circ. Dropping on the floor.");
}