mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Move goto label in answer_from_cache to the end of the function
where it is more visible. git-svn-id: file:///svn/unbound/trunk@5145 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
8a0de6b519
commit
937523285a
2 changed files with 10 additions and 4 deletions
|
|
@ -660,10 +660,7 @@ answer_from_cache(struct worker* worker, struct query_info* qinfo,
|
||||||
if(!reply_check_cname_chain(qinfo, rep)) {
|
if(!reply_check_cname_chain(qinfo, rep)) {
|
||||||
/* cname chain invalid, redo iterator steps */
|
/* cname chain invalid, redo iterator steps */
|
||||||
verbose(VERB_ALGO, "Cache reply: cname chain broken");
|
verbose(VERB_ALGO, "Cache reply: cname chain broken");
|
||||||
bail_out:
|
goto bail_out;
|
||||||
rrset_array_unlock_touch(worker->env.rrset_cache,
|
|
||||||
worker->scratchpad, rep->ref, rep->rrset_count);
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* check security status of the cached answer */
|
/* check security status of the cached answer */
|
||||||
|
|
@ -758,6 +755,11 @@ answer_from_cache(struct worker* worker, struct query_info* qinfo,
|
||||||
}
|
}
|
||||||
/* go and return this buffer to the client */
|
/* go and return this buffer to the client */
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
bail_out:
|
||||||
|
rrset_array_unlock_touch(worker->env.rrset_cache,
|
||||||
|
worker->scratchpad, rep->ref, rep->rrset_count);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Reply to client and perform prefetch to keep cache up to date.
|
/** Reply to client and perform prefetch to keep cache up to date.
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
3 April 2019: Wouter
|
||||||
|
- Move goto label in answer_from_cache to the end of the function
|
||||||
|
where it is more visible.
|
||||||
|
|
||||||
2 April 2019: Wouter
|
2 April 2019: Wouter
|
||||||
- Fix auth-zone NSEC3 response for empty nonterminals with exact
|
- Fix auth-zone NSEC3 response for empty nonterminals with exact
|
||||||
match nsec3 records.
|
match nsec3 records.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue