]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fixup query_info local_alias init.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 20 Oct 2016 14:55:57 +0000 (14:55 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 20 Oct 2016 14:55:57 +0000 (14:55 +0000)
git-svn-id: file:///svn/unbound/trunk@3899 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
services/cache/dns.c

index 8486fe90f0b0f145bbf2b2b284b0e0ac105d2641..8a9b4f27d38fa46c4e5f4f40f310bf5df4089325 100644 (file)
@@ -3,6 +3,7 @@
        - init lzt variable, for older gcc compiler warnings.
        - fix --enable-dsa to work, instead of copying ecdsa enable.
        - Fix DNSSEC validation of query type ANY with DNAME answers.
+       - Fixup query_info local_alias init.
 
 19 October 2016: Wouter
        - Fix #1130: whitespace in example.conf.in more consistent.
index 84db7a77884ce42774b67f24b282b0a89d16f501..bec688d014354a9efbb35f582c8d6411cd33c305 100644 (file)
@@ -194,6 +194,7 @@ msg_cache_lookup(struct module_env* env, uint8_t* qname, size_t qnamelen,
        k.qname_len = qnamelen;
        k.qtype = qtype;
        k.qclass = qclass;
+       k.local_alias = NULL;
        h = query_info_hash(&k, flags);
        e = slabhash_lookup(env->msg_cache, h, &k, wr);
 
@@ -361,6 +362,7 @@ dns_msg_create(uint8_t* qname, size_t qnamelen, uint16_t qtype,
        msg->qinfo.qname_len = qnamelen;
        msg->qinfo.qtype = qtype;
        msg->qinfo.qclass = qclass;
+       msg->qinfo.local_alias = NULL;
        /* non-packed reply_info, because it needs to grow the array */
        msg->rep = (struct reply_info*)regional_alloc_zero(region, 
                sizeof(struct reply_info)-sizeof(struct rrset_ref));
@@ -716,6 +718,7 @@ dns_cache_lookup(struct module_env* env,
        k.qname_len = qnamelen;
        k.qtype = qtype;
        k.qclass = qclass;
+       k.local_alias = NULL;
        h = query_info_hash(&k, flags);
        e = slabhash_lookup(env->msg_cache, h, &k, 0);
        if(e) {