aboutsummaryrefslogtreecommitdiff
path: root/src/or/dns.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-02-24 22:33:30 +0000
committerRoger Dingledine <arma@torproject.org>2004-02-24 22:33:30 +0000
commit7985f525ecaab537da6b9cc9f849eb6ba22ff411 (patch)
tree818e6398311d484b3d7f4f4f92f2daef576cc418 /src/or/dns.c
parent01cdffc0c26b8c9d58b822d7094149d250add3b7 (diff)
downloadtor-7985f525ecaab537da6b9cc9f849eb6ba22ff411.tar
tor-7985f525ecaab537da6b9cc9f849eb6ba22ff411.tar.gz
fix some bugs in assert_connection_ok
svn:r1118
Diffstat (limited to 'src/or/dns.c')
-rw-r--r--src/or/dns.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/or/dns.c b/src/or/dns.c
index f2eb411e5..1475ab84c 100644
--- a/src/or/dns.c
+++ b/src/or/dns.c
@@ -337,9 +337,7 @@ static void dns_found_answer(char *address, uint32_t addr) {
if(connection_edge_end(pend->conn, END_STREAM_REASON_RESOLVEFAILED, NULL) < 0)
log_fn(LOG_WARN,"1: I called connection_edge_end redundantly.");
} else {
- /* XXX should call assert_connection_ok here */
- assert(pend->conn->type >= _CONN_TYPE_MIN);
- assert(pend->conn->type <= _CONN_TYPE_MAX);
+ assert_connection_ok(pend->conn, time(NULL));
connection_exit_connect(pend->conn);
}
resolve->pending_connections = pend->next;