summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-02-27 23:30:27 +0000
committerRoger Dingledine <arma@torproject.org>2004-02-27 23:30:27 +0000
commitd0ad9b147ac4b0d3738d80b78b20070cc6aba592 (patch)
treec49603c548544c9aef09dda0dbc11eb56a424752
parent611f117ce1bfd8ed39be622f394e925bc13b8252 (diff)
downloadtor-d0ad9b147ac4b0d3738d80b78b20070cc6aba592.tar.gz
tor-d0ad9b147ac4b0d3738d80b78b20070cc6aba592.zip
and another one
svn:r1147
-rw-r--r--src/or/connection.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 134836c447..43e8339ac2 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -737,6 +737,10 @@ int connection_send_destroy(uint16_t circ_id, connection_t *conn) {
if(!connection_speaks_cells(conn)) {
log_fn(LOG_INFO,"CircID %d: At an edge. Marking connection for close.",
circ_id);
+ conn->has_sent_end = 1; /* we're closing the circuit, nothing to send to */
+/* XXX really, we should separate this function into two functions.
+ * one of them actually sends the destroy cell, as this function's name
+ * implies, and another one destroys a stream. Yes/no? -RD */
connection_mark_for_close(conn, END_STREAM_REASON_DESTROY);
return 0;
}