[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] whoops, fix seg fault i just introduced
Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or
Modified Files:
relay.c
Log Message:
whoops, fix seg fault i just introduced
Index: relay.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/relay.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- relay.c 23 Mar 2005 02:52:55 -0000 1.52
+++ relay.c 23 Mar 2005 03:02:44 -0000 1.53
@@ -407,7 +407,7 @@
relay_header_t rh;
int cell_direction;
- if (fromconn->marked_for_close) {
+ if (fromconn && fromconn->marked_for_close) {
log_fn(LOG_WARN,"Bug: called on conn that's already marked for close at %s:%d.",
fromconn->marked_for_close_file, fromconn->marked_for_close);
return 0;