diff options
author | Roger Dingledine <arma@torproject.org> | 2004-02-22 20:50:20 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-02-22 20:50:20 +0000 |
commit | 598f8b56615c00eedb3c6fd9843c39da0893c410 (patch) | |
tree | 6371adff933141c497442b009f36fe70072e7654 /src/or/dns.c | |
parent | fb4d66f0268e4acb0b747ce92ce1f816ccd9590f (diff) | |
download | tor-598f8b56615c00eedb3c6fd9843c39da0893c410.tar.gz tor-598f8b56615c00eedb3c6fd9843c39da0893c410.zip |
start hunting the lucky-bug
svn:r1116
Diffstat (limited to 'src/or/dns.c')
-rw-r--r-- | src/or/dns.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/or/dns.c b/src/or/dns.c index 1aeecd2b13..f2eb411e54 100644 --- a/src/or/dns.c +++ b/src/or/dns.c @@ -336,8 +336,12 @@ static void dns_found_answer(char *address, uint32_t addr) { if(resolve->state == CACHE_STATE_FAILED) { if(connection_edge_end(pend->conn, END_STREAM_REASON_RESOLVEFAILED, NULL) < 0) log_fn(LOG_WARN,"1: I called connection_edge_end redundantly."); - } else + } else { + /* XXX should call assert_connection_ok here */ + assert(pend->conn->type >= _CONN_TYPE_MIN); + assert(pend->conn->type <= _CONN_TYPE_MAX); connection_exit_connect(pend->conn); + } resolve->pending_connections = pend->next; free(pend); } |