add cached EDE strings

This commit is contained in:
TCY16
2022-09-21 11:21:33 +02:00
parent 5f309d0018
commit dcfcde2ec8
5 changed files with 67 additions and 12 deletions
+4
View File
@@ -373,6 +373,7 @@ error_response_cache(struct module_qstate* qstate, int id, int rcode)
err.serve_expired_ttl = NORR_TTL;
/* do not waste time trying to validate this servfail */
err.security = sec_status_indeterminate;
err.reason_bogus_str = NULL;
verbose(VERB_ALGO, "store error response in message cache");
iter_dns_store(qstate->env, &qstate->qinfo, &err, 0, 0, 0, NULL,
qstate->query_flags, qstate->qstarttime);
@@ -3737,6 +3738,9 @@ processFinished(struct module_qstate* qstate, struct iter_qstate* iq,
/* make sure QR flag is on */
iq->response->rep->flags |= BIT_QR;
/* explicitly set the EDE string size to 0 */
iq->response->rep->reason_bogus_str_size = 0;
/* we have finished processing this query */
qstate->ext_state[id] = module_finished;