]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Move rcode code back.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 25 Oct 2018 07:49:49 +0000 (07:49 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 25 Oct 2018 07:49:49 +0000 (07:49 +0000)
git-svn-id: file:///svn/unbound/trunk@4948 be551aaa-1e26-0410-a405-d3ace91eadb9

dns64/dns64.c

index 51e7437e63b949b6ec1b1cf91ea71df021e25752..7db8f4cef0513872ecfcc44e6706c15828aac824 100644 (file)
@@ -896,10 +896,6 @@ dns64_inform_super(struct module_qstate* qstate, int id,
         */
        super->minfo[id] = (void*)DNS64_SUBQUERY_FINISHED;
 
-       /* Use return code from A query in response to client. */
-       if (super->return_rcode != LDNS_RCODE_NOERROR)
-               super->return_rcode = qstate->return_rcode;
-
        /* If there is no successful answer, we're done. */
        if (qstate->return_rcode != LDNS_RCODE_NOERROR
            || !qstate->return_msg
@@ -907,6 +903,10 @@ dns64_inform_super(struct module_qstate* qstate, int id,
                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);