summaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index a83d43e8f8..1f1018a51a 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -506,8 +506,10 @@ circuit_deliver_create_cell(circuit_t *circ, uint8_t cell_type,
memcpy(cell.payload, payload, ONIONSKIN_CHALLENGE_LEN);
append_cell_to_circuit_queue(circ, circ->n_conn, &cell, CELL_DIRECTION_OUT);
- /* mark it so it gets better rate limiting treatment. */
- circ->n_conn->client_used = time(NULL);
+ if (CIRCUIT_IS_ORIGIN(circ)) {
+ /* mark it so it gets better rate limiting treatment. */
+ circ->n_conn->client_used = time(NULL);
+ }
return 0;
}