summaryrefslogtreecommitdiff
path: root/src/or/relay.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-03-23 03:02:44 +0000
committerRoger Dingledine <arma@torproject.org>2005-03-23 03:02:44 +0000
commit22386ecf1e8f102cff5607b2dde8a187709a46be (patch)
treec69acedaf8856d218b31f9267dce1481267c9699 /src/or/relay.c
parent7373042a7b5349bd45b3ce7c6b99a694330a65ad (diff)
downloadtor-22386ecf1e8f102cff5607b2dde8a187709a46be.tar.gz
tor-22386ecf1e8f102cff5607b2dde8a187709a46be.zip
whoops, fix seg fault i just introduced
svn:r3828
Diffstat (limited to 'src/or/relay.c')
-rw-r--r--src/or/relay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/relay.c b/src/or/relay.c
index 399587dcd2..60ff492867 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -407,7 +407,7 @@ int connection_edge_send_command(connection_t *fromconn, circuit_t *circ,
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;