From 5b54780df3687215ea1157b00d1745202c5e60ba Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Fri, 23 Jul 2004 06:28:12 +0000 Subject: don't send an end back for a malformed resolved cell, since they don't establish streams svn:r2119 --- src/or/relay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/or/relay.c b/src/or/relay.c index fa58a00b5..36c3896eb 100644 --- a/src/or/relay.c +++ b/src/or/relay.c @@ -570,7 +570,7 @@ connection_edge_process_relay_cell_not_open( tor_assert(conn->socks_request->command == SOCKS_COMMAND_RESOLVE); if (rh->length < 2 || cell->payload[RELAY_HEADER_SIZE+1]+2>rh->length) { log_fn(LOG_WARN, "Dropping malformed 'resolved' cell"); - connection_edge_end(conn, END_STREAM_REASON_MISC, conn->cpath_layer); + conn->has_sent_end = 1; connection_mark_for_close(conn); return 0; } -- cgit v1.2.3