]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
and another one
authorRoger Dingledine <arma@torproject.org>
Fri, 27 Feb 2004 23:30:27 +0000 (23:30 +0000)
committerRoger Dingledine <arma@torproject.org>
Fri, 27 Feb 2004 23:30:27 +0000 (23:30 +0000)
svn:r1147

src/or/connection.c

index 134836c4478f84308d60608bdcb0ba883e02cc2b..43e8339ac2ec9355a46154e59db1e7c3907a2640 100644 (file)
@@ -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;
   }