mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-23 16:20:26 -05:00
crash fixup.
git-svn-id: file:///svn/unbound/trunk@651 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
f0015b8919
commit
e7883b13f4
2 changed files with 7 additions and 0 deletions
|
|
@ -1,5 +1,7 @@
|
||||||
1 October 2007: Wouter
|
1 October 2007: Wouter
|
||||||
- skip F77, CXX, objC tests in configure step.
|
- skip F77, CXX, objC tests in configure step.
|
||||||
|
- fixup crash in refetch glue after a CNAME.
|
||||||
|
and protection against similar failures (with error print).
|
||||||
|
|
||||||
28 September 2007: Wouter
|
28 September 2007: Wouter
|
||||||
- test case for unbound-checkconf, fixed so it also checks the
|
- test case for unbound-checkconf, fixed so it also checks the
|
||||||
|
|
|
||||||
|
|
@ -706,6 +706,10 @@ processInitRequest(struct module_qstate* qstate, struct iter_qstate* iq,
|
||||||
* When re-fetching glue we also need to ask the parent.
|
* When re-fetching glue we also need to ask the parent.
|
||||||
*/
|
*/
|
||||||
if(iq->refetch_glue) {
|
if(iq->refetch_glue) {
|
||||||
|
if(!iq->dp) {
|
||||||
|
log_err("internal or malloc fail: no dp for refetch");
|
||||||
|
return error_response(qstate, id, LDNS_RCODE_SERVFAIL);
|
||||||
|
}
|
||||||
delname = iq->dp->name;
|
delname = iq->dp->name;
|
||||||
delnamelen = iq->dp->namelen;
|
delnamelen = iq->dp->namelen;
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -716,6 +720,7 @@ processInitRequest(struct module_qstate* qstate, struct iter_qstate* iq,
|
||||||
&& !dname_is_root(delname)) {
|
&& !dname_is_root(delname)) {
|
||||||
/* do not adjust root label, remove first label from delname */
|
/* do not adjust root label, remove first label from delname */
|
||||||
dname_remove_label(&delname, &delnamelen);
|
dname_remove_label(&delname, &delnamelen);
|
||||||
|
iq->refetch_glue = 0; /* if CNAME causes restart, no refetch */
|
||||||
}
|
}
|
||||||
while(1) {
|
while(1) {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue