Commit 598f8b56 authored by Roger Dingledine's avatar Roger Dingledine
Browse files

start hunting the lucky-bug


svn:r1116
parent fb4d66f0
...@@ -336,8 +336,12 @@ static void dns_found_answer(char *address, uint32_t addr) { ...@@ -336,8 +336,12 @@ static void dns_found_answer(char *address, uint32_t addr) {
if(resolve->state == CACHE_STATE_FAILED) { if(resolve->state == CACHE_STATE_FAILED) {
if(connection_edge_end(pend->conn, END_STREAM_REASON_RESOLVEFAILED, NULL) < 0) if(connection_edge_end(pend->conn, END_STREAM_REASON_RESOLVEFAILED, NULL) < 0)
log_fn(LOG_WARN,"1: I called connection_edge_end redundantly."); 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); connection_exit_connect(pend->conn);
}
resolve->pending_connections = pend->next; resolve->pending_connections = pend->next;
free(pend); free(pend);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment