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

daemon/cachedump.c
daemon/remote.c
iterator/iter_utils.c
iterator/iterator.c
libunbound/libworker.c
services/mesh.c
validator/val_neg.c
validator/val_utils.c

index 4b0a583a65474618eed373f0732f8d7e6a315f8d..8992e6cb8f3d23e8503e88111763368d98f56ca7 100644 (file)
@@ -563,6 +563,7 @@ load_qinfo(char* str, struct query_info* qinfo, struct regional* region)
        qinfo->qclass = sldns_wirerr_get_class(rr, rr_len, dname_len);
        qinfo->qname_len = dname_len;
        qinfo->qname = (uint8_t*)regional_alloc_init(region, rr, dname_len);
+       qinfo->local_alias = NULL;
        if(!qinfo->qname) {
                log_warn("error out of memory");
                return NULL;
@@ -826,6 +827,7 @@ int print_deleg_lookup(SSL* ssl, struct worker* worker, uint8_t* nm,
        qinfo.qname_len = nmlen;
        qinfo.qtype = LDNS_RR_TYPE_A;
        qinfo.qclass = LDNS_RR_CLASS_IN;
+       qinfo.local_alias = NULL;
 
        dname_str(nm, b);
        if(!ssl_printf(ssl, "The following name servers are used for lookup "
index 4eddaa85ab84a298a906afe2aa579d23ec9e1540..e731b19b156f9f9b603d79ec7ec01e51574ae994 100644 (file)
@@ -1310,6 +1310,7 @@ do_cache_remove(struct worker* worker, uint8_t* nm, size_t nmlen,
        k.qname_len = nmlen;
        k.qtype = t;
        k.qclass = c;
+       k.local_alias = NULL;
        h = query_info_hash(&k, 0);
        slabhash_remove(worker->env.msg_cache, h, &k);
        if(t == LDNS_RR_TYPE_AAAA) {
index 874dd6850e4e1264e6a3a1fa4e261dcfab25fbe4..344b6aafd7fb15b692f992cc164a5bec45a2b2cc 100644 (file)
@@ -532,6 +532,7 @@ causes_cycle(struct module_qstate* qstate, uint8_t* name, size_t namelen,
        qinf.qname_len = namelen;
        qinf.qtype = t;
        qinf.qclass = c;
+       qinf.local_alias = NULL;
        fptr_ok(fptr_whitelist_modenv_detect_cycle(
                qstate->env->detect_cycle));
        return (*qstate->env->detect_cycle)(qstate, &qinf, 
index a2ba77822d6eca22270f5097a2a65095624b3510..5bd2be0796ad2ebb2c47c9df9bdc814af249d0c9 100644 (file)
@@ -2012,6 +2012,7 @@ processQueryTargets(struct module_qstate* qstate, struct iter_qstate* iq,
                        iq->qinfo_out.qname_len = iq->dp->namelen;
                        iq->qinfo_out.qtype = LDNS_RR_TYPE_A;
                        iq->qinfo_out.qclass = iq->qchase.qclass;
+                       iq->qinfo_out.local_alias = NULL;
                        iq->minimise_count = 0;
                }
 
index 08599090e035987983c570be224c0c6d5c2557ca..40cb0ff2387dffd9b20181a14d19c8ee58f5d70d 100644 (file)
@@ -573,6 +573,7 @@ setup_qinfo_edns(struct libworker* w, struct ctx_query* q,
 {
        qinfo->qtype = (uint16_t)q->res->qtype;
        qinfo->qclass = (uint16_t)q->res->qclass;
+       qinfo->local_alias = NULL;
        qinfo->qname = sldns_str2wire_dname(q->res->qname, &qinfo->qname_len);
        if(!qinfo->qname) {
                return 0;
index 60f828d9f7e36559f92b32c097a0b7874cceb664..a77a696350d9e4227fd7e8f004b804c28e59fb29 100644 (file)
@@ -530,6 +530,7 @@ mesh_state_create(struct module_env* env, struct query_info* qinfo,
        /* init module qstate */
        mstate->s.qinfo.qtype = qinfo->qtype;
        mstate->s.qinfo.qclass = qinfo->qclass;
+       mstate->s.qinfo.local_alias = NULL;
        mstate->s.qinfo.qname_len = qinfo->qname_len;
        mstate->s.qinfo.qname = regional_alloc_init(region, qinfo->qname,
                qinfo->qname_len);
index a5e687fdc417d9e800d8c845cc5ce58452d5fb2b..272c5e027ac782fbc37fc310f183b2993e06927a 100644 (file)
@@ -1007,6 +1007,7 @@ int val_neg_dlvlookup(struct val_neg_cache* neg, uint8_t* qname, size_t len,
        qinfo.qname = qname;
        qinfo.qtype = LDNS_RR_TYPE_DLV;
        qinfo.qclass = qclass;
+       qinfo.local_alias = NULL;
        if(!nsec_proves_nodata(nsec, &qinfo, &wc) &&
                !val_nsec_proves_name_error(nsec, qname)) {
                /* the NSEC is not a denial for the DLV */
index ecf20f8e50eea5b29441256f309955c68f52445e..da8066aad7e960b4a7a4fe5189633b998d76a7a8 100644 (file)
@@ -1138,6 +1138,7 @@ val_find_DS(struct module_env* env, uint8_t* nm, size_t nmlen, uint16_t c,
        qinfo.qname_len = nmlen;
        qinfo.qtype = LDNS_RR_TYPE_DS;
        qinfo.qclass = c;
+       qinfo.local_alias = NULL;
        /* do not add SOA to reply message, it is going to be used internal */
        msg = val_neg_getmsg(env->neg_cache, &qinfo, region, env->rrset_cache,
                env->scratch_buffer, *env->now, 0, topname);