]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Optimisation.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 27 Apr 2009 12:40:22 +0000 (12:40 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 27 Apr 2009 12:40:22 +0000 (12:40 +0000)
git-svn-id: file:///svn/unbound/trunk@1617 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
iterator/iterator.c

index 2654cf3dfbf0d5d5dd5595c6c7722f552a996fda..edb7fd2106c9ece0701938e6a08382f8adcd01db 100644 (file)
@@ -1,3 +1,6 @@
+27 April 2009: Wouter
+       - optimised cname from cache.
+
 23 April 2009: Wouter
        - fix for threadsafety in solaris thr_key_create() in tests.
        - iana portlist updated.
index 8b58ea1e0290169dc01e8edef026ad8ccc1fa6c2..ff14b7f0d46217e28ad283b2f0563106b82c6d2c 100644 (file)
@@ -855,10 +855,11 @@ processInitRequest(struct module_qstate* qstate, struct iter_qstate* iq,
                /* handle positive cache response */
                enum response_type type = response_type_from_cache(msg, 
                        &iq->qchase);
-               if(verbosity >= VERB_ALGO)
+               if(verbosity >= VERB_ALGO) {
                        log_dns_msg("msg from cache lookup", &msg->qinfo, 
                                msg->rep);
-               verbose(VERB_ALGO, "msg ttl is %d", (int)msg->rep->ttl);
+                       verbose(VERB_ALGO, "msg ttl is %d", (int)msg->rep->ttl);
+               }
 
                if(type == RESPONSE_TYPE_CNAME) {
                        uint8_t* sname = 0;