- Fix query for refetch_glue of stub leaking to internet.

git-svn-id: file:///svn/unbound/trunk@4227 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2017-06-15 15:00:07 +00:00
parent 39b5f5bbc6
commit 7bb1d8a8d1
2 changed files with 15 additions and 0 deletions

View file

@ -1,6 +1,7 @@
15 June 2017: Wouter 15 June 2017: Wouter
- Fix stub zone queries leaking to the internet for - Fix stub zone queries leaking to the internet for
harden-referral-path ns checks. harden-referral-path ns checks.
- Fix query for refetch_glue of stub leaking to internet.
13 June 2017: Wouter 13 June 2017: Wouter
- Fix #1279: Memory leak on reload when python module is enabled. - Fix #1279: Memory leak on reload when python module is enabled.

View file

@ -1071,6 +1071,20 @@ processInitRequest(struct module_qstate* qstate, struct iter_qstate* iq,
return next_state(iq, COLLECT_CLASS_STATE); return next_state(iq, COLLECT_CLASS_STATE);
} }
/*
* If we are restricted by a forward-zone or a stub-zone, we
* can't re-fetch glue for this delegation point.
* we wont try to re-fetch glue if the iq->dp is null.
*/
if (iq->refetch_glue &&
iq->dp &&
!can_have_last_resort(qstate->env,
iq->dp->name,
iq->dp->namelen,
iq->qchase.qclass)) {
iq->refetch_glue = 0;
}
/* Resolver Algorithm Step 1 -- Look for the answer in local data. */ /* Resolver Algorithm Step 1 -- Look for the answer in local data. */
/* This either results in a query restart (CNAME cache response), a /* This either results in a query restart (CNAME cache response), a