aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-01-19 04:58:39 +0000
committerRoger Dingledine <arma@torproject.org>2004-01-19 04:58:39 +0000
commit522982f8e9616d735f08e7ea6492d13b62ade12d (patch)
treed3e42663448bbcd21e2a2672ef7b392f04affdf7 /src/or/connection_edge.c
parent016d2a38d52b3d9596793b897c4419fbebf1f054 (diff)
downloadtor-522982f8e9616d735f08e7ea6492d13b62ade12d.tar
tor-522982f8e9616d735f08e7ea6492d13b62ade12d.tar.gz
fix assert trigger in server
Jan 18 04:11:43.312 [warn] connection_edge_send_command(): no circ. Closing. i think it was while sending a connected relay cell back. reason for having the circ gone is still not known. presumably the end cell arrived at just the right time. svn:r1005
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r--src/or/connection_edge.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 133257579..0f2736597 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -148,6 +148,8 @@ int connection_edge_send_command(connection_t *fromconn, circuit_t *circ, int re
if(!circ) {
log_fn(LOG_WARN,"no circ. Closing.");
+ assert(fromconn);
+ fromconn->marked_for_close = 1;
return -1;
}