[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] fix an assert trigger in cvs: if a resolve request fails, a...
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] fix an assert trigger in cvs: if a resolve request fails, a...
- From: arma@xxxxxxxx (Roger Dingledine)
- Date: Sun, 13 Mar 2005 23:42:55 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Sun, 13 Mar 2005 23:43:12 -0500
- Reply-to: or-dev@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or
Modified Files:
dns.c
Log Message:
fix an assert trigger in cvs: if a resolve request fails, and the circuit
has vanished in the meantime, then we would both mark it for close
(i.e. put it on the closeable list) and also immediately free it.
Index: dns.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/dns.c,v
retrieving revision 1.138
retrieving revision 1.139
diff -u -d -r1.138 -r1.139
--- dns.c 14 Mar 2005 03:18:35 -0000 1.138
+++ dns.c 14 Mar 2005 04:42:52 -0000 1.139
@@ -277,7 +277,8 @@
circ = circuit_get_by_conn(exitconn);
if (circ)
circuit_detach_stream(circ, exitconn);
- connection_free(exitconn);
+ if (!exitconn->marked_for_close)
+ connection_free(exitconn);
return -1;
}
tor_assert(0);