aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2012-10-03 20:17:37 -0400
committerRoger Dingledine <arma@torproject.org>2012-10-03 20:17:37 -0400
commite50fa0d6cb467e8f6d41995eb6d03d74e9f64e04 (patch)
tree9e98a27655f05e3a61b5a6565700835cfc509f9a /src
parentc88a4c51b4cd2d6d584231a44a6e4ea4ac7396a0 (diff)
downloadtor-e50fa0d6cb467e8f6d41995eb6d03d74e9f64e04.tar
tor-e50fa0d6cb467e8f6d41995eb6d03d74e9f64e04.tar.gz
Refuse extra create cells with reason "resource limit"
In the past we had used reason "internal", which is more vague than it needs to be. Resolves bug 7037.
Diffstat (limited to 'src')
-rw-r--r--src/or/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/command.c b/src/or/command.c
index abf664c1e..d8a409bc2 100644
--- a/src/or/command.c
+++ b/src/or/command.c
@@ -428,7 +428,7 @@ command_process_create_cell(cell_t *cell, or_connection_t *conn)
log_warn(LD_GENERAL,"Failed to hand off onionskin. Closing.%s",m);
tor_free(m);
}
- circuit_mark_for_close(TO_CIRCUIT(circ), END_CIRC_REASON_INTERNAL);
+ circuit_mark_for_close(TO_CIRCUIT(circ), END_CIRC_REASON_RESOURCELIMIT);
return;
}
log_debug(LD_OR,"success: handed off onionskin.");