]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
fixup double linked list insertion code.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 7 Jun 2007 07:58:02 +0000 (07:58 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 7 Jun 2007 07:58:02 +0000 (07:58 +0000)
git-svn-id: file:///svn/unbound/trunk@372 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
iterator/iterator.c
services/outbound_list.c
services/outside_network.c

index 191367c7a0706d838c52edc1cf5eee7830ca31d3..2e8221b5c9f7740e37a881788eaa7635b3519063 100644 (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.
index da9f8e99ba19647927e4ef4e857d3218955dfc8c..ab70664c9d0fa75bb3a356500496ad1dfc55f14e 100644 (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;
index 789877a6c9e40a66db97f1a2f93e6c0fd1717143..5fce67f7b210c85737dd0ee5b7a8de6d125cca45 100644 (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;
index 15fbde93d810b1e65fc6deceae0a290dbe5d66be..0c65f41e185da8a4915445937b3122e370e8ccf7 100644 (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);
 }