Skip to content
Snippets Groups Projects
Commit 5b54780d authored by Roger Dingledine's avatar Roger Dingledine
Browse files

don't send an end back for a malformed resolved cell,

since they don't establish streams


svn:r2119
parent b8b22ffd
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment