[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] don"t send an end back for a malformed resolved cell,



Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	relay.c 
Log Message:
don't send an end back for a malformed resolved cell,
since they don't establish streams


Index: relay.c
===================================================================
RCS file: /home/or/cvsroot/src/or/relay.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- relay.c	23 Jul 2004 00:04:40 -0000	1.6
+++ relay.c	23 Jul 2004 06:28:12 -0000	1.7
@@ -570,7 +570,7 @@
     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;
     }