summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-02-29 22:07:44 +0000
committerRoger Dingledine <arma@torproject.org>2004-02-29 22:07:44 +0000
commite2881631cf9ddcd2d13e04b237f047d8032c9513 (patch)
tree2b75c104c1fe163181256ba797e824f7d4a9cd78
parent2ac37c64f288cf72060edffc45ff5a3bbb8f787e (diff)
downloadtor-e2881631cf9ddcd2d13e04b237f047d8032c9513.tar.gz
tor-e2881631cf9ddcd2d13e04b237f047d8032c9513.zip
fix duplicate call to connection_mark_for_close
svn:r1187
-rw-r--r--src/or/connection_edge.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 85d07446c7..060ae7e9c2 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -215,6 +215,7 @@ int connection_edge_process_relay_cell(cell_t *cell, circuit_t *circ, connection
if(rh.command == RELAY_COMMAND_END) {
log_fn(LOG_INFO,"Exit got end (%s) before we're connected. Marking for close.",
connection_edge_end_reason(cell->payload+RELAY_HEADER_SIZE, rh.length));
+ conn->has_sent_end = 1; /* we just got an 'end', don't need to send one */
connection_mark_for_close(conn, 0);
return 0;
}