fixup double linked list insertion code.

git-svn-id: file:///svn/unbound/trunk@372 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2007-06-07 07:58:02 +00:00
parent aaec3572e4
commit 01c703d3e6
4 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,8 @@
7 June 2007: Wouter
- fixup error in double linked list insertion for subqueries and
for outbound list of serviced queries for iterator module.
- nicer printout of outgoing port selection.
5 June 2007: Wouter
- iterator state finished.
- subrequests without parent store in cache and stop.

View file

@ -486,6 +486,8 @@ generate_sub_request(uint8_t* qname, size_t qnamelen, uint16_t qtype,
subq->env = qstate->env;
subq->work_info = qstate->work_info;
subq->parent = qstate;
if(qstate->subquery_first)
qstate->subquery_first->subquery_prev = subq;
subq->subquery_next = qstate->subquery_first;
subq->subquery_prev = NULL;
qstate->subquery_first = subq;

View file

@ -66,6 +66,8 @@ outbound_list_clear(struct outbound_list* list)
void
outbound_list_insert(struct outbound_list* list, struct outbound_entry* e)
{
if(list->first)
list->first->prev = e;
e->next = list->first;
e->prev = NULL;
list->first = e;

View file

@ -701,7 +701,7 @@ select_port(struct outside_network* outnet, struct pending* pend,
else pend->c = outnet->udp4_ports[chosen];
log_assert(pend->c);
verbose(VERB_ALGO, "query %x outbound %d of %d", pend->id, chosen, nummax);
verbose(VERB_ALGO, "query %x outbound on port %d of %d", pend->id, chosen, nummax);
}