mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
fixes and new ldns tarball.
git-svn-id: file:///svn/unbound/trunk@1939 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
ab9bd76768
commit
7094eab574
4 changed files with 5 additions and 3 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
15 December 2009: Wouter
|
15 December 2009: Wouter
|
||||||
- Answer to qclass=ANY queries, with class IN contents.
|
- Answer to qclass=ANY queries, with class IN contents.
|
||||||
Test that validation also works.
|
Test that validation also works.
|
||||||
|
- updated ldns snapshot tarball with latest fixes (parsing records).
|
||||||
|
|
||||||
11 December 2009: Wouter
|
11 December 2009: Wouter
|
||||||
- on IPv4 UDP turn off DF flag.
|
- on IPv4 UDP turn off DF flag.
|
||||||
|
|
|
||||||
|
|
@ -1950,7 +1950,7 @@ processClassResponse(struct module_qstate* qstate, int id,
|
||||||
/* lower sec_state if this message is lower */
|
/* lower sec_state if this message is lower */
|
||||||
if(from->rep->rrset_count != 0) {
|
if(from->rep->rrset_count != 0) {
|
||||||
size_t n = from->rep->rrset_count+to->rep->rrset_count;
|
size_t n = from->rep->rrset_count+to->rep->rrset_count;
|
||||||
struct ub_packed_rrset_key** dest;
|
struct ub_packed_rrset_key** dest, **d;
|
||||||
/* copy appropriate rcode */
|
/* copy appropriate rcode */
|
||||||
to->rep->flags = from->rep->flags;
|
to->rep->flags = from->rep->flags;
|
||||||
/* copy rrsets */
|
/* copy rrsets */
|
||||||
|
|
@ -1960,6 +1960,7 @@ processClassResponse(struct module_qstate* qstate, int id,
|
||||||
foriq->state = FINISHED_STATE;
|
foriq->state = FINISHED_STATE;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
d = dest;
|
||||||
/* copy AN */
|
/* copy AN */
|
||||||
memcpy(dest, to->rep->rrsets, to->rep->an_numrrsets
|
memcpy(dest, to->rep->rrsets, to->rep->an_numrrsets
|
||||||
* sizeof(dest[0]));
|
* sizeof(dest[0]));
|
||||||
|
|
@ -1983,6 +1984,7 @@ processClassResponse(struct module_qstate* qstate, int id,
|
||||||
from->rep->ns_numrrsets,
|
from->rep->ns_numrrsets,
|
||||||
from->rep->ar_numrrsets * sizeof(dest[0]));
|
from->rep->ar_numrrsets * sizeof(dest[0]));
|
||||||
/* update counts */
|
/* update counts */
|
||||||
|
to->rep->rrsets = d;
|
||||||
to->rep->an_numrrsets += from->rep->an_numrrsets;
|
to->rep->an_numrrsets += from->rep->an_numrrsets;
|
||||||
to->rep->ns_numrrsets += from->rep->ns_numrrsets;
|
to->rep->ns_numrrsets += from->rep->ns_numrrsets;
|
||||||
to->rep->ar_numrrsets += from->rep->ar_numrrsets;
|
to->rep->ar_numrrsets += from->rep->ar_numrrsets;
|
||||||
|
|
@ -2043,7 +2045,7 @@ processCollectClass(struct module_qstate* qstate, int id)
|
||||||
}
|
}
|
||||||
/* if no roots are configured at all, return */
|
/* if no roots are configured at all, return */
|
||||||
if(iq->num_current_queries == 0) {
|
if(iq->num_current_queries == 0) {
|
||||||
verbose(VERB_ALGO, "No hints or fwds, giving up "
|
verbose(VERB_ALGO, "No root hints or fwds, giving up "
|
||||||
"on qclass ANY");
|
"on qclass ANY");
|
||||||
return error_response(qstate, id, LDNS_RCODE_REFUSED);
|
return error_response(qstate, id, LDNS_RCODE_REFUSED);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
BIN
ldns-src.tar.gz
BIN
ldns-src.tar.gz
Binary file not shown.
|
|
@ -305,7 +305,6 @@ needs_validation(struct module_qstate* qstate, int ret_rc,
|
||||||
verbose(VERB_ALGO, "cannot validate RRSIG, no sigs on sigs.");
|
verbose(VERB_ALGO, "cannot validate RRSIG, no sigs on sigs.");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue