mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-02 04:49:34 -05:00
remove superfluous variables
This commit is contained in:
parent
0b176750bd
commit
b65ff768bc
1 changed files with 2 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue