]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
remove superfluous variables
authorTCY16 <tom@nlnetlabs.nl>
Fri, 18 Nov 2022 10:30:11 +0000 (11:30 +0100)
committerTCY16 <tom@nlnetlabs.nl>
Fri, 18 Nov 2022 10:30:11 +0000 (11:30 +0100)
daemon/worker.c

index a13bb9530fb5c3a4306484007a5f8719bd97117e..528943c6b177520a409c364f93fc998e94d83882 100644 (file)
@@ -486,11 +486,9 @@ answer_norec_from_cache(struct worker* worker, struct query_info* qinfo,
                                        return 0;
                        /* Attached the cached EDE (RFC8914) */
                        if (worker->env.cfg->ede) {
-                               char* reason_bogus_str = msg->rep->reason_bogus_str;
-
                                edns_opt_list_append_ede(&edns->opt_list_out,
                                        worker->scratchpad, msg->rep->reason_bogus,
-                                       reason_bogus_str);
+                                       msg->rep->reason_bogus_str);
                        }
                        error_encode(repinfo->c->buffer, LDNS_RCODE_SERVFAIL, 
                                &msg->qinfo, id, flags, edns);
@@ -664,11 +662,9 @@ answer_from_cache(struct worker* worker, struct query_info* qinfo,
                        goto bail_out;
                /* Attached the cached EDE (RFC8914) */
                if (worker->env.cfg->ede) {
-                       char* reason_bogus_str = rep->reason_bogus_str;
-
                        edns_opt_list_append_ede(&edns->opt_list_out,
                                        worker->scratchpad, rep->reason_bogus,
-                                       reason_bogus_str);
+                                       rep->reason_bogus_str);
                }
                error_encode(repinfo->c->buffer, LDNS_RCODE_SERVFAIL,
                        qinfo, id, flags, edns);