nicer code.

git-svn-id: file:///svn/unbound/trunk@962 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2008-02-18 13:20:14 +00:00
parent a0cc6dfc5a
commit dd7ffb54ee
2 changed files with 2 additions and 7 deletions

View file

@ -7,6 +7,7 @@
take long, but throughput has to be high).
- fixup iterator operating in no cache conditions (RD flag unset
after a CNAME).
- streamlined code for RD flag setting.
15 February 2008: Wouter
- added FreeBSD rc.d script to contrib.

View file

@ -884,15 +884,9 @@ processInitRequest3(struct module_qstate* qstate, struct iter_qstate* iq)
iq->dnssec_expected = iter_indicates_dnssec(qstate->env, iq->dp,
iq->deleg_msg, iq->qchase.qclass);
/* Reset the RD flag. If this is a query restart, then the RD
* will have been turned off. */
if(qstate->query_flags & BIT_RD)
iq->chase_flags |= BIT_RD;
else iq->chase_flags &= ~BIT_RD;
/* If the RD flag wasn't set, then we just finish with the
* cached referral as the response. */
if(!(iq->chase_flags & BIT_RD)) {
if(!(qstate->query_flags & BIT_RD)) {
iq->response = iq->deleg_msg;
if(verbosity >= VERB_ALGO)
log_dns_msg("no RD requested, using delegation msg",