From: Ralph Dolmans Date: Thu, 5 Oct 2017 13:55:04 +0000 (+0000) Subject: - Use RCODE from A response on DNS64 synthesized answer. X-Git-Tag: release-1.6.7rc1^0 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9a727c3c1ab7e552ccd11dd628b00d1aa20fa53d;p=thirdparty%2Funbound.git - Use RCODE from A response on DNS64 synthesized answer. git-svn-id: file:///svn/unbound/trunk@4365 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/dns64/dns64.c b/dns64/dns64.c index 2f2d1255d..7889d72e2 100644 --- a/dns64/dns64.c +++ b/dns64/dns64.c @@ -792,6 +792,10 @@ dns64_inform_super(struct module_qstate* qstate, int id, qstate->return_msg->rep)) return; + /* Use return code from A query in response to client. */ + if (super->return_rcode != LDNS_RCODE_NOERROR) + super->return_rcode = qstate->return_rcode; + /* Generate a response suitable for the original query. */ if (qstate->qinfo.qtype == LDNS_RR_TYPE_A) { dns64_adjust_a(id, super, qstate); diff --git a/doc/Changelog b/doc/Changelog index 762d6049a..923d6b1ed 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -4,6 +4,7 @@ 5 October 2017: Ralph - Set trust-anchor-signaling default to yes + - Use RCODE from A query on DNS64 synthesized answer. 2 October 2017: Wouter - Fix param unused warning for windows exportsymbol compile.