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

[or-cvs] resolve tequila"s crash bug: you can"t free something



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

Modified Files:
	connection_edge.c 
Log Message:
resolve tequila's crash bug: you can't free something
and then keep using it.


Index: connection_edge.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/connection_edge.c,v
retrieving revision 1.262
retrieving revision 1.263
diff -u -d -r1.262 -r1.263
--- connection_edge.c	7 Dec 2004 16:37:32 -0000	1.262
+++ connection_edge.c	7 Dec 2004 21:57:37 -0000	1.263
@@ -825,6 +825,7 @@
   if (we_are_hibernating()) {
     connection_edge_end(n_stream, END_STREAM_REASON_EXITPOLICY, n_stream->cpath_layer);
     connection_free(n_stream);
+    return 0;
   }
 
   /* send it off to the gethostbyname farm */