diff options
author | Roger Dingledine <arma@torproject.org> | 2004-07-23 06:28:12 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-07-23 06:28:12 +0000 |
commit | 5b54780df3687215ea1157b00d1745202c5e60ba (patch) | |
tree | f1cd886f3bf1d70bd835519ebf0a6687627d6684 /src | |
parent | b8b22ffdcb62851357ddc1c57fc97e58bffbb3a2 (diff) | |
download | tor-5b54780df3687215ea1157b00d1745202c5e60ba.tar.gz tor-5b54780df3687215ea1157b00d1745202c5e60ba.zip |
don't send an end back for a malformed resolved cell,
since they don't establish streams
svn:r2119
Diffstat (limited to 'src')
-rw-r--r-- | src/or/relay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/relay.c b/src/or/relay.c index fa58a00b50..36c3896eb1 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; } |