remove superfluous variables

This commit is contained in:
TCY16 2022-11-18 11:30:11 +01:00
parent 0b176750bd
commit b65ff768bc

View 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);