]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
dns64: Fix misleading indentation
authorDaniel Gröber via Unbound-users <unbound-users@lists.nlnetlabs.nl>
Mon, 9 Oct 2023 12:43:35 +0000 (14:43 +0200)
committerGeorge Thessalonikefs <yorgos@nlnetlabs.nl>
Wed, 18 Oct 2023 10:03:40 +0000 (12:03 +0200)
Signed-off-by: Daniel Gröber <dxld@darkboxed.org>
dns64/dns64.c

index 83d61b2bdd38973d1edbaea279319dbdfe903e66..b856a86c9257500fad5c425a469c1b60c3f20dfb 100644 (file)
@@ -577,8 +577,8 @@ handle_event_pass(struct module_qstate* qstate, int id)
             && qstate->qinfo.qtype == LDNS_RR_TYPE_PTR
             && qstate->qinfo.qname_len == 74
             && !strcmp((char*)&qstate->qinfo.qname[64], "\03ip6\04arpa"))
-        /* Handle PTR queries for IPv6 addresses. */
-        return handle_ipv6_ptr(qstate, id);
+               /* Handle PTR queries for IPv6 addresses. */
+               return handle_ipv6_ptr(qstate, id);
 
        int synth_all_cfg = qstate->env->cfg->dns64_synthall;
        int synth_qname =
@@ -652,9 +652,12 @@ handle_event_moddone(struct module_qstate* qstate, int id)
 
        /* Store the response in cache. */
        if ( (!iq || !iq->started_no_cache_store) &&
-               qstate->return_msg && qstate->return_msg->rep &&
-               !dns_cache_store(qstate->env, &qstate->qinfo, qstate->return_msg->rep,
-               0, 0, 0, NULL, qstate->query_flags, qstate->qstarttime))
+            qstate->return_msg &&
+            qstate->return_msg->rep &&
+            !dns_cache_store(
+                    qstate->env, &qstate->qinfo, qstate->return_msg->rep,
+                    0, 0, 0, NULL,
+                    qstate->query_flags, qstate->qstarttime))
                log_err("out of memory");
 
        /* do nothing */