mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix #804: unbound stops responding after outage. Fixes queries
that attempt to wait for an empty list of subqueries. git-svn-id: file:///svn/unbound/trunk@3830 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
c389329878
commit
d2dee3d5a4
2 changed files with 10 additions and 0 deletions
|
|
@ -1,3 +1,7 @@
|
|||
23 August 2016: Wouter
|
||||
- Fix #804: unbound stops responding after outage. Fixes queries
|
||||
that attempt to wait for an empty list of subqueries.
|
||||
|
||||
8 August 2016: Wouter
|
||||
- Note that OPENPGPKEY type is RFC 7929.
|
||||
|
||||
|
|
|
|||
|
|
@ -1069,6 +1069,12 @@ mesh_continue(struct mesh_area* mesh, struct mesh_state* mstate,
|
|||
*ev = module_event_pass;
|
||||
return 1;
|
||||
}
|
||||
if(s == module_wait_subquery && mstate->sub_set.count == 0) {
|
||||
log_err("module cannot wait for subquery, subquery list empty");
|
||||
log_query_info(VERB_QUERY, "pass error for qstate",
|
||||
&mstate->s.qinfo);
|
||||
s = module_error;
|
||||
}
|
||||
if(s == module_error && mstate->s.return_rcode == LDNS_RCODE_NOERROR) {
|
||||
/* error is bad, handle pass back up below */
|
||||
mstate->s.return_rcode = LDNS_RCODE_SERVFAIL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue