summaryrefslogtreecommitdiff
path: root/src/or/rendclient.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-05-12 21:12:33 +0000
committerRoger Dingledine <arma@torproject.org>2004-05-12 21:12:33 +0000
commit1cf183699059c4c9fc430247fb058226ac110ad0 (patch)
treefa9e713ba89e11c7422d265638fa5d1c95c0d68e /src/or/rendclient.c
parent537fb82cbb3b0488535f94bbccb0899f1b6b027a (diff)
downloadtor-1cf183699059c4c9fc430247fb058226ac110ad0.tar.gz
tor-1cf183699059c4c9fc430247fb058226ac110ad0.zip
break connection_edge_end out of connection_mark_for_close
svn:r1858
Diffstat (limited to 'src/or/rendclient.c')
-rw-r--r--src/or/rendclient.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/rendclient.c b/src/or/rendclient.c
index 3727e41fcc..e9de2965ec 100644
--- a/src/or/rendclient.c
+++ b/src/or/rendclient.c
@@ -380,11 +380,13 @@ void rend_client_desc_fetched(char *query, int success) {
if (connection_ap_handshake_attach_circuit(conn) < 0) {
/* it will never work */
log_fn(LOG_WARN,"attaching to a rend circ failed. Closing conn.");
- connection_mark_for_close(conn,0);
+ conn->has_sent_end = 1;
+ connection_mark_for_close(conn);
}
} else { /* 404, or fetch didn't get that far */
log_fn(LOG_WARN,"service id '%s' fetched failed, and not in cache. Closing conn.", query);
- connection_mark_for_close(conn,0);
+ conn->has_sent_end = 1;
+ connection_mark_for_close(conn);
}
}
}