]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Actually, both nacks and acks indicate a valid path
authorMike Perry <mikeperry-git@fscked.org>
Fri, 7 Dec 2012 23:50:31 +0000 (15:50 -0800)
committerMike Perry <mikeperry-git@fscked.org>
Fri, 7 Dec 2012 23:50:31 +0000 (15:50 -0800)
src/or/rendclient.c

index ec43041b1a57b0b68d328e6eec30a1763e9436d7..1d473dec0703003490b78e19e154e461b60b9872 100644 (file)
@@ -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.");
     }